I came to know that from JSF 2.0 the URL can be changed in the address bar. It is more helpful to bookmark the URL. Is there any way to do in the JSF 1.x versions.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. But there are some common practices to achieve better bookmarkable URL’s in JSF 1.x:
Do not navigate to another page after submit, always return to the same page and display any error/success messages by
h:message(s).If you really need to go to a different page after submit, prefer to do it by a redirect. It will cause the browser to fire a brand new GET request on the given URL.
Do not use
h:commandLink/h:commandButton(which fire POST) for plain page-to-page navigation. Useh:outputLinkor just plain HTMLaelements. It’s also better for SEO.