[
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