Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 85535 invoked from network); 17 Oct 2008 02:05:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2008 02:05:35 -0000 Received: (qmail 98258 invoked by uid 500); 17 Oct 2008 02:05:36 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 98209 invoked by uid 500); 17 Oct 2008 02:05:36 -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 98197 invoked by uid 99); 17 Oct 2008 02:05:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 19:05:36 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 02:04:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3D548234C234 for ; Thu, 16 Oct 2008 19:04:44 -0700 (PDT) Message-ID: <99758792.1224209084249.JavaMail.jira@brutus> Date: Thu, 16 Oct 2008 19:04:44 -0700 (PDT) From: "Leonardo Uribe (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Updated: (MYFACES-2011) Javascript error on links after clicking a popup/download link In-Reply-To: <1769461259.1223954984395.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Leonardo Uribe updated MYFACES-2011: ------------------------------------ Status: Patch Available (was: Open) > Javascript error on links after clicking a popup/download link > -------------------------------------------------------------- > > Key: MYFACES-2011 > URL: https://issues.apache.org/jira/browse/MYFACES-2011 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 1.2.4 > Environment: MyFaces 1.2.4 IE7 > Reporter: Daniel Campagnoli > Assignee: Leonardo Uribe > Fix For: 1.2.5-SNAPSHOT > > Attachments: MYFACES-2011-JSF12.patch > > > We have just upgraded from 1.1.6 to 1.2.4 and come across an issue that looks similar to MYFACES-1804 in effect but looks to have a slightly different cause. > The issue occurs when you first click on a download/popup link and then go to click another link on the same page. > This calls oamSubmitForm which at the end calls oamClearHiddenInput which removes the hidden field from the dom. > Now when you go and click on another link on the original page it calls oamSubmitForm. This first calls clearFormHiddenParams_formname which tries to get the hidden field and set the value to empty, but because it has already been removed from the dom the field null and an exception occurs. > My workaround was to override oamSetHiddenInput and oamClearHiddenInput to instead of removing/adding the hidden field from the dom, was to (dis)enabled it instead. Alternatively clearFormHiddenParams_form could check to see if the hidden field exists before trying to set the value on it. > Note this error happens in IE7 and not in Firefox 3 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.