You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "mojiayi (Created) (JIRA)" <de...@myfaces.apache.org> on 2012/03/08 04:41:06 UTC

[jira] [Created] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
-----------------------------------------------------------------------------------------------------

                 Key: TRINIDAD-2238
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions: 2.0.1-core
         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
            Reporter: mojiayi
            Priority: Critical


I use this commandButton to popup a dialog,it's work fine for the first time.

<tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
							width="900" height="500" partialSubmit="true"/>

Once I close this dialog,there is a js error shown in console of parent page.

jsf.ajax.request: source not set
[Break on this error] throw new Error("jsf.ajax.request: source not set"); 

this js error is occured in line 1700 of file jsf.js in jsf jar.

And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.


--
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

        

[jira] [Comment Edited] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Giorgos Chasapis (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453922#comment-13453922 ] 

Giorgos Chasapis edited comment on TRINIDAD-2238 at 9/12/12 10:55 PM:
----------------------------------------------------------------------

On Glassfish 3.1.2 with Mojarra 2.1.6 and Trinidad 2.0.1 I could easily reproduce it.
With leightweight dialogs I get the javascript error.
With full popup windows after I close the popup I see the ajax inidicator spinning and the page will not work, until after a couple of non working clicks.

PS Added in Jira in March and still not even assigned to anyone?!
                
      was (Author: ichalos):
    On Glassfish 3.1.2 with Mojarra 2.1.6 and Trinidad 2.0.1 I could easily reproduce it.
With leightweight dialogs I get the javascript error.
With full popup windows after I close the popup I see the ajax inidicator spinning and the page will not work, until after a couple of non working clicks.
                  
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Reopened] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "mojiayi (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mojiayi reopened TRINIDAD-2238:
-------------------------------


Well,because I do not involve with JSF any more,I close this issue to avoid receive any email about it.Now that somebody say it is still a issue,so I reopen it,hope it will be fixed by some guy.
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: patch-for-XMLRequest.diff, TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Robert Schoch (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489125#comment-13489125 ] 

Robert Schoch commented on TRINIDAD-2238:
-----------------------------------------

Have opened a new issue for this bug, because it is impossible to update our applications to from JSF1 to JSF2 while it still exist.
See https://issues.apache.org/jira/browse/TRINIDAD-2334
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: patch-for-XMLRequest.diff, TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Giorgos Chasapis (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453922#comment-13453922 ] 

Giorgos Chasapis commented on TRINIDAD-2238:
--------------------------------------------

On Glassfish 3.1.2 with Mojarra 2.1.6 and Trinidad 2.0.1 I could easily reproduce it.
With leightweight dialogs I get the javascript error.
With full popup windows after I close the popup I see the ajax inidicator spinning and the page will not work, until after a couple of non working clicks.
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Robert Schoch (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496164#comment-13496164 ] 

Robert Schoch commented on TRINIDAD-2238:
-----------------------------------------

None of the Trinidad Committers have the time to check this and integrate the patch?
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: patch-for-XMLRequest.diff, TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Robert Schoch (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428001#comment-13428001 ] 

Robert Schoch commented on TRINIDAD-2238:
-----------------------------------------

Same issue with Trinidad 2.0.1 on a WebLogic 12.1.1 that has a built-in Mojarra 2.1.5.
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
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

        

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Scott O'Bryan (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13233530#comment-13233530 ] 

Scott O'Bryan commented on TRINIDAD-2238:
-----------------------------------------

Hmm.  I haven't seen this before.  So to clairify your environment, you're using Mojarra 2.1.4? Any chance we can get you to upload a test case?
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>            Priority: Critical
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
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

        

[jira] [Comment Edited] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Robert Schoch (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428034#comment-13428034 ] 

Robert Schoch edited comment on TRINIDAD-2238 at 8/3/12 12:36 PM:
------------------------------------------------------------------

The Attachment contains a test case with ENABLE_LIGHTWEIGHT_DIALOGS=true in the web.xml and partialSubmit="true" in the launcher button for a test dialog to reproduce the error.

If partialSubmit is set to false, it works.

Also: If ENABLE_LIGHTWEIGHT_DIALOGS is set to false, a dialog launch with partialSubmit="true" can be done only once. 
                
      was (Author: robs888):
    This is a test case with ENABLE_LIGHTWEIGHT_DIALOGS=true in the web.xml and partialSubmit="true" in the launcher button for a test dialog to reproduce the error.

If partialSubmit is set to false, it works.

Also: If ENABLE_LIGHTWEIGHT_DIALOGS is set to false, a dialog launch with partialSubmit="true" can be done only once.
                  
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
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

        

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Tobias (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279216#comment-13279216 ] 

Tobias commented on TRINIDAD-2238:
----------------------------------

Hello,
today I updated from JSF 1.2 to 2.1.7 and I have a similar problem with the trinidad dialog. Worked fine with 1.2
Environment: Tomcat 7.0.27, Servlet 2.5, com.sun.faces:jsf-impl:2.1.7, org.apache.myfaces.trinidad:trinidad-impl:2.0.1, Facelets, (tested on firefox and chrome)

<tr:commandLink id="view2" action="dialog:view" text="hello dialog" actionListener="#{Bean.view}"
	useWindow="true" partialSubmit="true" windowWidth="650" windowHeight="300" returnListener="#{Bean.refresh}">

After I close the dialog I get this error:
  Error calling TrPanelPopup callback function:
  Error: jsf.ajax.request: source not set
And then the next click on any link is not working. Have to refresh the page.
It's no difference if I use the normal close button or my own with "RequestContext.getCurrentInstance().returnFromDialog(null, null);"
I do not get any errors in the js console and the js debug is not stopping at TrPanelPopup.prototype.hide=function(a7) where the error is catched. So debugging for my is not so easy.

I found also this bug: https://issues.apache.org/jira/browse/TRINIDAD-2216
Now I think they are related because if I set partialSubmit="false" in my dialog link it works.
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
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

        

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Tobias (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488859#comment-13488859 ] 

Tobias commented on TRINIDAD-2238:
----------------------------------

Sorry but I don't get it.
Why did you change the resolution to "Won't Fix" if it is still an issue? And this without comment.
So what's the solution? Don't use partial submit or don't use trinidad at all? I'm a little confused now.
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: patch-for-XMLRequest.diff, TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Giorgos Chasapis (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455735#comment-13455735 ] 

Giorgos Chasapis edited comment on TRINIDAD-2238 at 10/20/12 9:28 AM:
----------------------------------------------------------------------

After so many days I found out a bit more about the problem.
In web.xml I removed

<context-param>
    <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
    <param-value>false</param-value>
  </context-param>

Then, the dialog closed with no javascript errors.
Unfortunately, the myfaces extensions (Tomahawk) wouldn't work normally anymore.
So, I will keep digging further.
If anyone knows more please contribute.

CORRECTION: The parameter didn't actually solve the problem. It just didn't show up the error window.
                
      was (Author: ichalos):
    After so many days I found out a bit more about the problem.
In web.xml I removed

<context-param>
    <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
    <param-value>false</param-value>
  </context-param>

Then, the dialog closed with no javascript errors.
Unfortunately, the myfaces extensions (Tomahawk) wouldn't work normally anymore.
So, I will keep digging further.
If anyone knows more please contribute.
                  
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: patch-for-XMLRequest.diff, TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Giorgos Chasapis (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13453922#comment-13453922 ] 

Giorgos Chasapis edited comment on TRINIDAD-2238 at 9/12/12 10:56 PM:
----------------------------------------------------------------------

On Glassfish 3.1.2 with Mojarra 2.1.6 and Trinidad 2.0.1 I could easily reproduce it.
With leightweight dialogs I get the javascript error.
With full popup windows after I close the popup I see the ajax inidicator spinning and the page will not work, until after a couple of non working clicks.
It seems like it's Mojarra 2.1 that created the problem, as on Mojarra 2.0 it doesn't exist.

PS Added in Jira in March and still not even assigned to anyone?!
                
      was (Author: ichalos):
    On Glassfish 3.1.2 with Mojarra 2.1.6 and Trinidad 2.0.1 I could easily reproduce it.
With leightweight dialogs I get the javascript error.
With full popup windows after I close the popup I see the ajax inidicator spinning and the page will not work, until after a couple of non working clicks.

PS Added in Jira in March and still not even assigned to anyone?!
                  
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Robert Schoch (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477884#comment-13477884 ] 

Robert Schoch edited comment on TRINIDAD-2238 at 10/17/12 4:11 PM:
-------------------------------------------------------------------

The context parameter org.apache.myfaces.trinidad.CACHE_VIEW_ROOT had no effect on my test case. But my patch seems to be the solution of the problem! Take a look on the Attachment patch-for-XMLRequest.diff.
                
      was (Author: robs888):
    The context parameter org.apache.myfaces.trinidad.CACHE_VIEW_ROOT had no effect on my test case. But my patch seems to be the solution of the problem!
                  
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: patch-for-XMLRequest.diff, TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Tomas Havelka (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13421405#comment-13421405 ] 

Tomas Havelka commented on TRINIDAD-2238:
-----------------------------------------

I have the same issue with Mojarra 2.1.11, GlassFish 3.1.2 and Trinidad 2.0.1.
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
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

        

[jira] [Comment Edited] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Giorgos Chasapis (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455735#comment-13455735 ] 

Giorgos Chasapis edited comment on TRINIDAD-2238 at 9/14/12 11:04 PM:
----------------------------------------------------------------------

After so many days I found out a bit more about the problem.
In web.xml I removed

<context-param>
    <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
    <param-value>false</param-value>
  </context-param>

Then, the dialog closed with no javascript errors.
Unfortunately, the myfaces extensions (Tomahawk) wouldn't work normally anymore.
So, I will keep digging further.
If anyone knows more please contribute.
                
      was (Author: ichalos):
    After so many days I found out what was causing the problem.
It was w parameter in web.xml

<context-param>
    <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
    <param-value>false</param-value>
  </context-param>

Just remove it and all should come back to normal.
I don't know the implications of this, but if anyone knows more please contribute.
                  
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Giorgos Chasapis (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455735#comment-13455735 ] 

Giorgos Chasapis commented on TRINIDAD-2238:
--------------------------------------------

After so many days I found out what was causing the problem.
It was w parameter in web.xml

<context-param>
    <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
    <param-value>false</param-value>
  </context-param>

Just remove it and all should come back to normal.
I don't know the implications of this, but if anyone knows more please contribute.
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Robert Schoch (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13477884#comment-13477884 ] 

Robert Schoch commented on TRINIDAD-2238:
-----------------------------------------

The context parameter org.apache.myfaces.trinidad.CACHE_VIEW_ROOT had no effect on my test case. But my patch seems to be the solution of the problem!
                
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: patch-for-XMLRequest.diff, TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (TRINIDAD-2238) dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1

Posted by "Giorgos Chasapis (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Giorgos Chasapis updated TRINIDAD-2238:
---------------------------------------

    Status: Patch Available  (was: Open)
    
> dialog popup via commandButton's action property can only be done once in same page in Trinidad 2.0.1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2238
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2238
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.1-core
>         Environment: windows,eclipse,firefox,Trinidad 2.0.1,javax-faces-2.1.4
>            Reporter: mojiayi
>         Attachments: TrinidadDialogTestCase.zip
>
>
> I use this commandButton to popup a dialog,it's work fine for the first time.
> <tr:commandButton text="print" action="dialog:table" useWindow="true" actionListener="#{tableBean.printTableListener}"
> 							width="900" height="500" partialSubmit="true"/>
> Once I close this dialog,there is a js error shown in console of parent page.
> jsf.ajax.request: source not set
> [Break on this error] throw new Error("jsf.ajax.request: source not set"); 
> this js error is occured in line 1700 of file jsf.js in jsf jar.
> And if I try to click this button to open this dialog again,dialog will not popup,nothing happens.Unless a ppr or reopen a page,dialog popup normally.
> I think this is a bug of the new version of trinidad,because no such error in trinidad 1.2.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira