Category: JSF

jsf tutorials

JSF Bookmarkable View Parameters Example

Prior to JSF 2.0 it was hard to accomplish bookmarkable URL’s. Now since JSF 2.0 they have made a good effort. We now have a new category of parameters. JSF Bookmarkable View Parameters. These...
jsf tutorials

Creating a Custom EL Resolver in JSF

In this tutorial we will create a custom el resolver. We can extend the ELResolver class to create our own implicit variables in JSF. The following are three simple steps to add custom implicit...
jsf tutorials

JSF Managed Property Example

This example shows how to use jsf managed property. When annotating a field with @ManagedProperty the values are set immediately after the bean’s construction and are available during @PostConstruct. Be informed that you can...
jsf tutorials

JSF Passing Request Parameters

This example shows you how you can pass request parameters from a view to your backing bean or view. We are using the <f:param> which will add a request parameter name-value pair to the...
jsf tutorials

JSF Facelets Templating Example

This tutorial explains how to use JSF facelets templating. Templating is the ability to reuse portion of your layout in order to follow the DRY (Don’t Repeat Yourself) principle. This allows you to easily...
jsf tutorials

JSF Validate Bean using javax.validation Annotations

This tutorial shows how to validate a JSF Form using javax.validation annotations on your managed bean. According to the JSR 303: Bean Validation Specification we can Annotate Classes, Methods or properties using the javax.validation...
jsf tutorials

JSF Validate RegEx Input Field Example

This tutorial shows how to use f:validateRegex JSF Validate Regex. This validator validates if an input field matches to the provide pattern attribute. The entire pattern is matched against the String value of the...