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 […]

JSF 2 Composite Component Example

JSF-Thumbnail

Unlike action-based frameworks, such as Struts or Ruby on Rails, jsf is a component-based, which means you can implement components that you or others can reuse. Before JSF 2.0, the using of components was very hard for mainly two reasons: The components were difficult to implement, because of the need to write much more java […]

JSF 2 JavaScript Namespaces Example

JSF-Thumbnail

Already you’ve seen the implementation of monitoring Ajax (request/response) using monitor JavaScript function. That method is fragile, however, because it can be overwritten by another JavaScript method of the same name. To prevent that replacement from happening, you could name your function something more unique, such as net.javabeat.monitor. For protecting our JavaScript from being overwritten, we implement a simple map […]