Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E82C491A0 for ; Thu, 1 Mar 2012 23:53:23 +0000 (UTC) Received: (qmail 74354 invoked by uid 500); 1 Mar 2012 23:53:23 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 74321 invoked by uid 500); 1 Mar 2012 23:53:23 -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 74314 invoked by uid 99); 1 Mar 2012 23:53:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 23:53:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 23:53:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 589A945F8 for ; Thu, 1 Mar 2012 23:52:59 +0000 (UTC) Date: Thu, 1 Mar 2012 23:52:59 +0000 (UTC) From: "Titan (Created) (JIRA)" To: dev@myfaces.apache.org Message-ID: <181257273.9567.1330645979364.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (TRINIDAD-2231) Dialog framework gives JS error[Sourceform could not be determined...] when trinidad.CLIENT_STATE_METHOD= all MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Dialog framework gives JS error[Sourceform could not be determined...] when= trinidad.CLIENT_STATE_METHOD=3D all ---------------------------------------------------------------------------= ---------------------------------- Key: TRINIDAD-2231 URL: https://issues.apache.org/jira/browse/TRINIDAD-2231 Project: MyFaces Trinidad Issue Type: Bug Components: Components, Infrastructure Affects Versions: 2.0.0-core Environment: MyFaces 2.1.0, Trinidad 2.0, Firefox 10.0.2 Reporter: Titan Requirement: To pop-up a new window using trinidad dialog framework on a bu= tton click and then close the dialog window to do operations in the main wi= ndow. Issue: The below javascript error is observed in firefox error console when= the dialog box is closed. Also no UI operations can be performed for appro= x 10 seconds on the mainpage.xhtml Sourceform could not be determined, either because element is not atta= ched to a form or we have multiple forms with named elements of the same id= entifier or name, stopping the ajax processing Line: 1, Char: 77875, Code: 0 URI: https://XXXXX:9443/YYYY/faces/javax.faces.resource/jsf.js?ln=3Dja= vax.faces Note: This issue is observed only when trinidad.CLIENT_STATE_METHOD=3Dall Steps to reproduce (Code in the below section): 1. Click on the link in the mainpage which will trigger the dialog. 2. Close the dialog window either by a clicking a link in the dialog window= or by clicking X button on the window. 3. Observe the above JS error in firefox error console 4. Click any link/button on the mainpage, It will fail to respond till appr= ox 10 secs. After that the link/button will work. Code to reproduce the test case: 1. create a basic main page.=20 contents of mainpage.xhtml =09 2. Add this action dialog:showDetail entry in faces-config.xml 3. Create a dialog page contents of dialog.xhtml 4. Create a backing bean InvstgnBacking=20 @ManagedBean() @RequestScoped public class InvstgnBacking { public void helpDialogReturn(ActionEvent e) { org.apache.myfaces.trinidad.context.RequestContext facesReqCtx =3D=20 org.apache.myfaces.trinidad.context.RequestContext.getCurrentInsta= nce(); if (facesReqCtx.getDialogService().peekView() !=3D null) facesReqCtx.returnFromDialog(null, null); facesReqCtx.returnFromDialog(false, null); } } ---------------------------------------------------------------------------= ------------- If partialSubmit is set to 'true' in the mainpage link id=3D"butt" then the= below JS error is observed and no pop-up is observed in the dialog. Error: not well-formed Source File: http://localhost:8181/JsfInvest/faces/mainpage.xhtml Line: 2, Column: 273 Source Code: ]]> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira