You can also configure a navigation rule to use redirect. sean
On 8/25/05, Srikanth Madarapu <[EMAIL PROTECTED]> wrote: > Instead of using the navigation rule I am calling the > externalContext.redirect(url) and returning null from the backing bean method. > > Dennis Byrne: Did you get any ideas ? > > Srikanth > > -----Original Message----- > From: Srikanth Madarapu > Sent: Thursday, August 25, 2005 2:57 PM > To: MyFaces Discussion > Subject: RE: url of the current page. > > > I have a page with an applet. That page is loaded with a navigation rule > which cannot have redirect set to true. > > The applet on the resulting page may find that the client does not have JRE > installed. On IE, in such case, the information bar appears with a message > saying that this page needs some activeX control. When you click on that > information bar the user will be given a choice of installing the control. > When the user clicks on the install activex control, the browser is > refreshing the page. Because the url of that page is actually pointing to the > previous page the refresh is causing to back the previous page. If I can set > the url of the current page with the correct url this wont happen. > > I think I have found a solution, not tested yet. I will post the results once > I am done. But please give your input on how to solve this problem. > > Thanks > Srikanth > > -----Original Message----- > From: Dennis Byrne [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 25, 2005 2:49 PM > To: MyFaces Discussion > Subject: Re: url of the current page. > > > May I ask why the URL is needed? Obviously the controller > uses this - but when an application developer needs it, it > may indicate the logic is "location" specific, and therefore > not portable. > > ---- Original message ---- > >Date: Thu, 25 Aug 2005 14:20:29 -0400 > >From: "Srikanth Madarapu" <[EMAIL PROTECTED]> > >Subject: url of the current page. > >To: "Apache My Faces (E-mail)" <[email protected]> > > > >Hi > > > > When a page is loaded with a navigation rule, the url of > that page will refer to the previous page's url, if the > redirect is not set in the navigation rule. Is there any > other way to set the url of the current page correctly > without using the redirect in the navigation rule ? > > > >TIA > >-Srikanth Madarapu > Dennis Byrne >

