This chapter focused on the different forms of JSF validation, because it is extremely important for the user to know if the data has been entered correctly. We examined the two forms of validation methods: client side and server side. We looked at the FacesMessage
instances and learnt how to create them. Afterwards, we proceeded to cover validation from the server side, particularly, the Bean Validation framework in Java EE 7. We then took an extended developer journey into JSF validation. We learnt how to create custom validators and converters. We also learnt how to perform immediate mode validation with AJAX and understood the partial context life cycle. Finally, we spent a good deal of time on handling views and passing information from the page view to the controller. Along the way, we addressed the JSF flow scope and page redirection.
In the next chapter, we will turn our attention to conversational scopes and start putting the useful process flow applications together. At...