[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198723#comment-16198723 ] Dora Rajappan commented on MYFACES-4162: I got the redirect flag fundamental from the mkyong example. After all its just a display error of browser and cant we ignore it!!! at the cost of a redirect for all non ajaxed navigations!!! > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198611#comment-16198611 ] Werner Punz commented on MYFACES-4162: -- As I mentioned before... for non ajaxed cases use a redirect true flag in your navigational definitions. This should fix it. In the ajax navigational case, there is nothing we can do atm we probably would need a spec extension regarding url rewriting here, which at the time the ajax api was specified originally was not supported by any browser. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198563#comment-16198563 ] Dora Rajappan commented on MYFACES-4162: Its true that both mojarra and myfaces behave same way displaying previous page names in browser. Yes its the urls. Guess its how things work. And 4154 can be closed then. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198544#comment-16198544 ] Werner Punz commented on MYFACES-4162: -- https://issues.apache.org/jira/browse/MYFACES-4154 if you mean with the browser name, the url in the browser, that is unfortunately to be expected since you navigate from the login page to the main page with an ajax call. ATM there is no url rewriting for such cases specified. Also jsf used to be always one xhtml behind anway in its url due to its basic postback -> forward navigational mechanism. Both myfaces and mojarra behave the same here, that the first navigational call is a postback into the same page with a forward into a new page. So I guess MYFACES-4154 is not a bug it is more how things work. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198540#comment-16198540 ] Dora Rajappan commented on MYFACES-4162: I just checked below two are related and cause by repeated ajax calls. Only first ajax call one was succeeding. Subsequent calls whether to show another error message or navigate to a different page wasnt working. With the latest fix they both work very well. .https://issues.apache.org/jira/projects/MYFACES/issues/MYFACES-4160 https://issues.apache.org/jira/browse/MYFACES-4162 . 4154 is purely a navigation and page name error not related to ajax. Ie after login page (very first page) when navigated to a new page it shows in browser name of the previous page while its at a current page rendered properly). 4154 is not fixed. 4160, 4162 are fixed and works both with IE and chrome!!! Thanks to Werner! > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198523#comment-16198523 ] Werner Punz commented on MYFACES-4162: -- Yes i am waiting for the final confirmation from Dora atm... > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198517#comment-16198517 ] Thomas Andraschko commented on MYFACES-4162: Ok, so we also set the status of MYFACES-4154 as fixed? > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198494#comment-16198494 ] Werner Punz commented on MYFACES-4162: -- I guess we are done with this set of issues https://issues.apache.org/jira/projects/MYFACES/issues/MYFACES-4154 works for me now https://issues.apache.org/jira/projects/MYFACES/issues/MYFACES-4160 also and https://issues.apache.org/jira/browse/MYFACES-4162 passes also now > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16198492#comment-16198492 ] Werner Punz commented on MYFACES-4162: -- Ok the the final logout issue also was caused by the client side. The code added the viewroot prefix to the names of the newly attached viewstate fields. This is fixed now. Doras example now works for me end to end. No need for a server side investigation. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197737#comment-16197737 ] Leonardo Uribe commented on MYFACES-4162: - I'm still here. Just don't have enough time to contribute these days. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197316#comment-16197316 ] Werner Punz commented on MYFACES-4162: -- Yeah I noticed. I will ask around what happened to him. He used to be on Irians payroll just for myfaces. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197308#comment-16197308 ] Thomas Andraschko commented on MYFACES-4162: All right. I will try to have a look at this. Leo seems away since some weeks/months. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197277#comment-16197277 ] Werner Punz commented on MYFACES-4162: -- I just checked the usecase, that is unrelated to the ajax code. Following, the login page makes an ajax navigation. The response sends a viewstate of: ]]> which apparently ends up in the form as following element: As you can see a perfectly valid viewstate Now the logout button is a normal non ajaxed button where the logout button is in ui:include: now what happens if i press the first signout, I end up back on the same page apparently something in the myfaces 2.3 navigational code is messed up here, but not on the ajax side. Either the server sends a wrong viewstate back at the ajax request or something else is broken in this usecase. By pressing the button a second time I finally have the correct viestate and the navigation goes forward back to the login page. Sorry there is nothing I can do on my side here, the viewstates coming in from the server are correctly inserted. The server guys need to debug that out. Just a sidenote, I replaced quickly our implementation in the pom.xml with mojarra. Mojarra 2.3.2 navigates correctly. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197153#comment-16197153 ] Thomas Andraschko commented on MYFACES-4162: So https://issues.apache.org/jira/projects/MYFACES/issues/MYFACES-4154 is also fixed? > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197128#comment-16197128 ] Werner Punz commented on MYFACES-4162: -- so fixed in 1811580 apparently, there were some smaller javascript errors which slipped through my unit tests. The example from Dora now works here as expected. The viewroot is properly resolved and the elements updated, the viewstate is attached later on as expected. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197098#comment-16197098 ] Werner Punz commented on MYFACES-4162: -- Actually it seems to be a slight js error on my side in the new code. The browser bombs out because of a wrong js function call into the string length. Will fix that quickly. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197068#comment-16197068 ] Werner Punz commented on MYFACES-4162: -- Actually on the response side it looks ok javax.faces.ViewRoot is the update id which means both head and body need to be replaced, which the code does. I just need to check what happens on the client side. > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197067#comment-16197067 ] Dora Rajappan commented on MYFACES-4162: Works fine with IE and not with chrome! > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)
[jira] [Commented] (MYFACES-4162) bug in the response handling if a full page is sent via ajax
[ https://issues.apache.org/jira/browse/MYFACES-4162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16197062#comment-16197062 ] Thomas Andraschko commented on MYFACES-4162: so the navigation is triggered but not via redirect (e.g. ?faces-redirect=true)? Does the server return a update id="javax.faces.ViewRoot"? > bug in the response handling if a full page is sent via ajax > > > Key: MYFACES-4162 > URL: https://issues.apache.org/jira/browse/MYFACES-4162 > Project: MyFaces Core > Issue Type: Bug >Affects Versions: 2.3.0-beta >Reporter: Werner Punz >Assignee: Werner Punz > > The example in https://issues.apache.org/jira/browse/MYFACES-4154 sends back > an entire page due to a page navigation triggered from an ajax call, and > apparently the page is inserted but the viewstate is lost along the way. I > need to investigate what happens for such a corner case, since triggering a > page change navigation from Ajax is rather seldom but needs to be addressed. > I will need a handful of days to fix this, due to my limited time. -- This message was sent by Atlassian JIRA (v6.4.14#64029)