I am using JSF 2.0 and Primefaces in my project.
I have two xhtml pages namely Cars.xhtml and Bikes.xhtml.
I am using ViewScoped backing beans.
Currently If get view expired exception from any of the two pages,im handling it in the web.xml. through the error-page tag and directing to welcome.xhtml.
Now If i get a viewexpired exception from Bikes.xhtml I need to direct to another page which is BikesHome.xhtml instead of welcome.xhtml.
If the exception is from Cars.xhtml, welcome.xhtml should be shown.
Please help me how to do.