Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 54134 invoked from network); 16 Aug 2010 18:19:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 18:19:46 -0000 Received: (qmail 17771 invoked by uid 500); 16 Aug 2010 18:19:46 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 17731 invoked by uid 500); 16 Aug 2010 18:19:45 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 17724 invoked by uid 99); 16 Aug 2010 18:19:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 18:19:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 18:19:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7GIJP0F018760 for ; Mon, 16 Aug 2010 18:19:25 GMT Message-ID: <20742134.370881281982765088.JavaMail.jira@thor> Date: Mon, 16 Aug 2010 14:19:25 -0400 (EDT) From: "Leonardo Uribe (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Reopened: (MYFACES-2858) pointless oamsubmit inline rendering (patch available) In-Reply-To: <1904206.155951280919496317.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MYFACES-2858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leonardo Uribe reopened MYFACES-2858: ------------------------------------- We have to review first what happen if tomahawk + mojarra is used. Note in this case oamSubmit.js is not on the classpath. I think if myfaces is used, we could include oamSubmit.js inside our jsf.js, but if mojarra is used, include it on a separate file as part of tomahawk and add it inline as shown. > pointless oamsubmit inline rendering (patch available) > ------------------------------------------------------ > > Key: MYFACES-2858 > URL: https://issues.apache.org/jira/browse/MYFACES-2858 > Project: MyFaces Core > Issue Type: Improvement > Affects Versions: 2.0.2-SNAPSHOT > Reporter: Werner Punz > Fix For: 2.0.2-SNAPSHOT > > Attachments: https___issues_apache_org_jira_browse_MYFACES-2858_externalizing_oamsubmit__.patch > > > We have had several functions rendered inline for ages, namely appendHiddenInput oamSubmit, the autoscroll stuff etc... > I personally think the rendering of those functions as inline scripts is pointless, blows up the browsers tremendously and > prevents that the affected scripts can be browser cached. > A quick look at the code revealed that there is basically nothing which would prevent to externalize the scripts. My main problem is where to we handle the auto append code. > My personal guess is we probably simply should add it as a resource definitions to the commandLink, Button etc.. renderers, any ideas regarding this? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.