Hi,


I have Error page with Back button. On selecting Back I navigate to the
page in which this error has occurred by setting that page to View Root
using following code snippet.



FacesContext context = FacesContext.getCurrentInstance();

           UIViewRoot newView =
context.getApplication().getViewHandler().createView(context,
this.backAction);

            context.setViewRoot(newView);



After navigating back to the page, the browser URL is shown as
..\Error.jsf.

I have h:outputLinks in my source page without context path (e.g.
Page1.jsf).

The absolute path is being considered based on the path of Error.jsf
shown in Browser.



How can I set the newView's URL in the browser on taking Back button?
(Similar to <redirect/> if I were to use navigation rule).



Thanks & Regards,

Kiran




The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

Reply via email to