users@glassfish.java.net

Wrong JSF page in the Browser's address field

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Oct 2007 00:53:24 PDT

Hi Coders,

I have some strange problem with JSF navigation, the navigation itself works fine but according to the JSF spec the browser address field should stay the same for all pages/outcomes if 'redirect' is not specified. In my case it's somehow populated by previosly loaded page name.

For example: if browser initially showed the http://server/faces/page1.jsp and as a result of "dopage2" outcome Glassfish generated and sent the page2.jsp - everything is fine - it is properly rendered and address field contains the same http://server/faces/page1.jsp, but after the outcome "dopage1" was sumbited and processed from page2.jsp - the page1.jsp is rendered properly but address field contains http://server/faces/page2.jsp, so it changing and changing not correctly (for another outcome lets say "dopage3" sumbited from page1.jsp there will be http://server/faces/page1.jsp - always late by one submit).

If anybody have some idea why is it changing the address bar, - it will help a lot.

Thanks,
Dmitry.
[Message sent by forum member 'dmitrys' (dmitrys)]

http://forums.java.net/jive/thread.jspa?messageID=239449