Re: Get common url for all pages in the project

Splash Forums PrettyFaces Users Get common url for all pages in the project Re: Get common url for all pages in the project

#22852

I you really want to do that? I don’t think that makes much sense. Which page should be rendered if the user manually enters the URL into the browser bar or presses F5 to load the page? There is no way to know that because HTTP is stateless.

The only way you could implement something like this is using dynaview:

http://ocpsoft.org/docs/prettyfaces/3.3.3/en-US/html/Configuration.html#config.dynaview

In this case you have to implement the dynaview method in a way that it is able to tell which page to render. You could for example store this information in the user’s session or something like that.