how to create a link to a JSF page from outside the application
I am working with a JSF application that posts on every mouse click, so if you get 5 pages deep, your url stays th开发者_如何学JAVAe same.
now i need to link to one of these pages from outside of jsf. what can i do?
(i am new to jsf)
Navigation rules use forward by default, that's why the URL does not change.
Use http://site.com/ctx/page.jsf
to access a given page. *.jsf
is the mapping of your faces servlet to in web.xml
(it can have different value in your configuration, but normally it is *.jsf
or /faces/*
i dont know if ive got it right but as much as i understood it you need to use GET instead of POST this time, right? in my current project we still use JSF 1.2 and that is achieved by PrettyFaces (http://ocpsoft.com/prettyfaces/) by us. do you mean that?
精彩评论