JSF Mini Book – Tips, concepts and good practices

Use the h:outputLink to navigate

To navigate across the pages in the JSF we can use several components like: outputLink, commandButton, commandLink. With these components we can navigate across the pages without problems, if you  want to increase performance there is a difference between them that you must know.

When components h:commandLink and h:commandButton do navigation between pages, they fire all JSF life cycles; the components will send the form data, the values sent will be validated and faces-config navigation rules checked.

If you use the outputLink to navigate between pages, the JSF will navigate to the destination without firing any kind of life cycle events. If you want to use this option just use the command like: <h:outputLink outcome=”/ProjectJSF/page01.xhtml” value=“Page 01”/>.

12 Thoughts on “JSF Mini Book – Tips, concepts and good practices

  1. Really good material. Thanks very much…

  2. Thank you very much !!!

  3. This Post is Awesome. Followed every things and applied on my project.

  4. very usefull material, Keep up the good work

  5. Really cool material! I agree with Tim. If this could be distributed in pdf format, you will become a little more famous. :) Thanks, good job!

  6. This is awesome! Could you post the entire article as a PDF for download??

Leave a Reply

Post Navigation