JSF Tutorials

Let’s look into a JSF example.This JSF example gives a good overview of the different components in JSF. Create the web page using data table and radio button. How to use the Data table Radio button Error messages Resource Bundle JSF Example- Data Table Create a new web page and select the data table. Set […]

JSF Binding

In a normal JSF application there will be one or more backing beans.Backing bean can also define methods that can perform different functions associated with a component, validation, event handling, and navigation processing. JSF – faces-config.xml Description Defines the backing beans : Name used in EL in template Scope controlled (request, session, etc.) Defines navigation […]

This section describes the structure of JSF applications. JSF – Error Message Snapshot String errMsg=webMessagesBundle.getString(“xyz"); FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR, errMsg,errMsg); // Get the properties file import java.util.ResourceBundle; protected static ResourceBundle webMessagesBundle = ResourceBundle.getBundle(“xyz.web.properties.webMessages"); getFacesContext().addMessage("Validation Error",message); JSF – Structure The template (most commonly jsp) defines the interface The faces-config defines the navigation and the backing […]

FacesServlet creates an object called FacesContext, which contains information necessary for request processing. FacesContext contains all of the per-request state information related to the processing of a single JavaServer Faces request, and the rendering of the corresponding response. This means that the URL of every request must contain the /faces/ pattern, as specified in the […]

Let’s understand the life cycle of JSF. A Java Server Faces application supports two kinds of responses and two kinds of requests: Faces response: A servlet response that was created by the execution of the Render Response Phase of the request processing life cycle. Non-Faces response: A servlet response that was not created by the execution of […]

Java Server Faces technology is a server side framework for building user interfaces for web applications. JSF framework as a toolbox  that is full of  ready to use components where you can quickly  and easily add and reuse  these components many times in a page and capture events generated by actions on these components. So […]

JSF tip – 1 Handling HTML forms is one of the most common tasks when you develop web applications. The JSF provides JSP tags for rendering HTML forms, manages the state of the forms, validates user-input reporting errors, lets you bind user interface components to JavaBean properties, and does many other things that increase your […]

This section has a good collection of JSF Interview Questions and Answers.There are more than 25 questions with answers which will help you to prepare for job interview. This will be helpful for a beginner as well  as an experienced person. What is JSF ? JavaServer Faces (JSF) is a user interface (UI) framework for […]