myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary VanMatre (Commented) (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TRINIDAD-2231) Dialog framework gives JS error[Sourceform could not be determined...] when trinidad.CLIENT_STATE_METHOD= all
Date Mon, 05 Mar 2012 22:30:03 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-2231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13222686#comment-13222686
] 

Gary VanMatre commented on TRINIDAD-2231:
-----------------------------------------

Sure sounds like the same symptoms in TRINIDAD-1813
                
> Dialog framework gives JS error[Sourceform could not be determined...] when trinidad.CLIENT_STATE_METHOD=
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 button click
and then close the dialog window to do operations in the main window.
> 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 approx 10 seconds on the mainpage.xhtml
>      Sourceform could not be determined, either because element is not attached to a
form or we have multiple forms with named elements of the same identifier or name, stopping
the ajax processing
>      Line: 1, Char: 77875, Code: 0
>      URI: https://XXXXX:9443/YYYY/faces/javax.faces.resource/jsf.js?ln=javax.faces
> Note: This issue is observed only when trinidad.CLIENT_STATE_METHOD=all
> 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 approx 10 secs.
After that the link/button will work.
> Code to reproduce the test case:
> 1. create a basic main page. 
>    contents of mainpage.xhtml
>     <tr:document xmlns:tr="http://myfaces.apache.org/trinidad" title="Facelets">
>       <tr:form id="mainForm" >
>       	<tr:commandButton id="butt" useWindow="true" immediate="true" text="Open Dialog"
action="dialog:showDetail" />
>       </tr:form>
>     </tr:document>
> 2. Add this action dialog:showDetail entry in faces-config.xml
> 3. Create a dialog page
>     contents of dialog.xhtml
>     <tr:document xmlns:tr="http://myfaces.apache.org/trinidad" title="Facelets">
>       <tr:form id="dialogForm">
>         <tr:commandLink id="bakLnk" text="Back 2 main page" actionListener="#{invstgnBacking.helpDialogReturn}"/>
>       </tr:form>
>     </tr:document>
> 4. Create a backing bean InvstgnBacking 
>    @ManagedBean()
>    @RequestScoped
>    public class InvstgnBacking {
>       public void helpDialogReturn(ActionEvent e)
>       {
>       org.apache.myfaces.trinidad.context.RequestContext facesReqCtx = 
>          org.apache.myfaces.trinidad.context.RequestContext.getCurrentInstance();
>       if (facesReqCtx.getDialogService().peekView() != null)
>            facesReqCtx.returnFromDialog(null, null);
>       facesReqCtx.returnFromDialog(false, null);
>      }
> }
> ----------------------------------------------------------------------------------------
> If partialSubmit is set to 'true' in the mainpage link id="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:
> <partial-response><changes><update id="tr_mainForm_Postscript"><![CDATA[<span
id="tr_mainForm_Postscript"><script type="text/javascript">var mainForm_SF={};</script></span>]]></update><script
id="::launchScript">_launchDialog("/JsfInvest/faces/__ADFv__?_afPfm=-soz91051&_t=fred&_vir=/dialog.xhtml&loc=en-US",
"TrinidadDialog0",{width:100,height:100},"mainForm","butt",1);</script><update id="javax.faces.ViewState"><![CDATA[H4sIAAAAAAAAAHVSO2/UQBCe+M6XSy4ilyDRISGgocAX6iuCFHHCxDxECEKiSPbs4eyTvbtZz17s5kqaFKSADok/kD+BaBESLQ0UlNBDBbsOviNFRtrRvHa++UZz8hNcmStYG7MJ8zQlqXeX5fF9Jt3FL+8/XNr/3ABnAMupYNGAhSSUD0sUK8xjkUaF3LwNVlYO20Z3zWsStMZ7SbR3Syu4+Dyo+qaMj7yHwzGG1D/+9OxdN7+ROgCFNB+cA5iCIwnaGUv4QKhM20ijTrkzd2GekKa+OdREZ2uXTNi16Bvz+MxqyZm5PFVw005WeC9YiLkXikwKjpy8Xf9pgoePhaDrj5SQqKjcxjKHf7JuplZwYc7qDtfZ/0kzQWtiOvgRwWrPUpJshF4RU5ZOLf6qiWueHGj0oy2hOaHKz3QMBB/1j74ff3x17asDC/fAnbBUo4Htzose6GyI6uXJm8ud19+O6l1aaRhu3nnctmr7XHJ2xC7BikIeoUL1pJQo68E7p9HthCy9K0KNPCZZGKOXladgpBKeRCwyqArrb61UhCzFvGZQnVlQxaa/1vbfbvz+4UDTh3ZsTi8UEQawGNrVqJJgvTqhnmXd27HtR/0A2tbVZrEW4aopnzCVME6VW8g/Rgic3R2jDFkAKW2mUylZ/AU1zUYy9QIAAA==]]></update><eval><![CDATA[TrPage.getInstance().__handlePprResponseAction('/JsfInvest/faces/mainpage.xhtml');]]></eval></changes></partial-response>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message