JSF 2 Dynamic Navigation using From Outcome Example

JSF-Thumbnail

In most web applications navigation isn’t static, the page flow doesn’t just depend on which button you click but also on the inputs that you provide. For example, submitting a login page may have two outcomes: success or failure. The outcome depends on a computation-namely, whether the username and password are legitimate. To implement dynamic navigation, […]

JSF 2 Static Navigation Example

JSF-Thumbnail

The navigation is one of the powerful points that makes the development of the web application more easier. From the day one JSF provides a built-in navigation mechanism that allow moving from one view to another. The navigation handler is responsible for selecting the next JSF view, when the user has posted the form back […]

JSF 2 Injecting Managed Beans Example

JSF-Thumbnail

This tutorial intended for providing a complete example of how could wire (connect/inject/reference) a managed beans from/into another managed bean. In our previous tutorial I have explained how to configure a managed bean. Also Read: JSF 2 Tutorials JSF Tutorials Introduction to JSF 1. IndexBean Managed Bean IndexBean.java 2. JPATutorialBean JPATutorialBean.java 3. JSFTutorialBean JSFTutorialBean.java 4. […]

JSF 2 Managed Beans Example

JSF-Thumbnail

The concept of managed bean(s) or backing bean(s) is used intensively by the jsf developers for referring that/those Java Class(es) which are used for handling the presentation business logic. Concept of managed bean(s) are coming from a more general concept that introduced before many years ago and it’s an MVC (Model, View & Controller). In […]

JSF 2 Ajax JavaScript Library Example

JSF-Thumbnail

As you’ve noted in the different provided examples that discusses various aspect of Ajax, and at every time you’ve been using the Ajax, you need to add an <h:outputScript library=”javax.faces” name=”jsf.js”/> tag. That script used for ajaxifying the JSF 2.0. The f:ajax tag is a convenient way to implement simple Ajax functionality, but that tag offers a […]

JSF 2 Ajax Error Handling Example

JSF-Thumbnail

Ajax mechanism is identical to those mechanisms that considered as error-prone, as you have experienced when you’re working with a JSF framework. Ajax framework with the JSF 2.0 framework provides you onerror attribute to handle the errors that could be thrown while the JSF framework executes the component(s) that mentioned at f:ajax’s execute attribute Also Read: JSF […]

JSF 2 Ajax Progress Bar Example

JSF-Thumbnail

One of the major issues that could be cause a headache for the end user when the web application support Ajax, is the indicator of being things are going or happening. Most of web applications doesn’t consider such that indicator, so the end user may submit the form multiple times or canceling it or do […]

JSF 2 Form with AJAX Example

JSF-Thumbnail

Asynchronous JavaScript XML (Ajax) is considered for a long time as a luxury, either users or developers, but today Ajax is essential for building compelling and competitive applications. JSF2.0 has built-in Ajax support, with a standard JavaScript library. JSF Ajax requests partially process components on the server, and partially render components on the client when […]

JSF 2 CommandLink and CommandButton with AJAX Example

JSF-Thumbnail

Asynchronous JavaScript XML (Ajax) is considered for a long time as a luxury, either users or developers, but today Ajax is essential for building compelling and competitive applications. JSF 2.0 has built-in Ajax support, with a standard JavaScript library. JSF Ajax requests partially process components on the server, and partially render components on the client […]

JSF 2 InputText with AJAX Example

JSF-Thumbnail

Asynchronous JavaScript XML (Ajax) is considered for a long time as a luxury, either users or developers, but today Ajax is essential for building compelling and competitive applications. JSF 2.0 has built-in Ajax support, with a standard JavaScript library. JSF Ajax requests partially process components on the server, and partially render components on the client […]