Category: JSF

jsf tutorials

Passing parameters in JSF Facelets Templating

In this tutorial we show you how to pass parameters in JSF using Facelets Templating. We will be passing parameters down the chain using the <ui:param> element. Main Layout Template This is our main layout...
jsf tutorials

JSF Global Exception Handler Factory Example

In this tutorial we show you how to create a Global Exception Handler Factory. We create a factory that extends the javax.faces.context.ExceptionHandlerFactory. Here we can override the getExceptionHandler and return a new CustomExceptionHandler which will...
jsf tutorials

JSF 2 Change Default Separator Character

In this tutorial we show you how to change the default separator character in JSF. The default separator character in JSF is : and it’s sometimes difficult to work with JavaScript or CSS selectors. In...
jsf tutorials

JSF 2: Custom Output FacesComponent Example

In this tutorial we will show you how to build a custom output component, also known as a FacesComponent. We’ll only look how to create a custom component using annotations. If you’re looking for prior...
jsf tutorials

JSF 2 Custom Input FacesComponent Example

In this tutorial we will create a custom input FacesComponent. Since JSF 2 we can create a custom component using only annotations. prior to JSF 2 we had to create a taglib.xml file and register...
jsf tutorials

JSF Custom FacesBehavior TagHandler and Renderer

In this tutorial we will show you a JSF Custom FacesBehavior TagHandler and Renderer. Our goal is to add a style attribute on different events. When the component is focussed we add a focus-css rule...