Category: JSF

jsf tutorials

JSF Managed Bean XML Configuration

In this tutorial we will be creating JSF Managed Bean XML Configuration. You can configure managed beans with XML inside the WEB-INF/faces-config.xml file or if you have a large project and you want to...
jsf tutorials

JSF Access Managed Bean Programatically

This tutorials shows how to access a JSF or CDI managed bean programatically. Sometimes, you may need to access a JSF or CDI managed bean from an event listener or another managed bean. You...
jsf tutorials

JSF Hidden Input Value Example

In this example we show the usage of the JSF hidden input value tag. The tag can be used to pass temporary data or information provided by the user that should be used again....
jsf tutorials

CDI Managed Bean example with @Named

This tutorial show how to create CDI managed beans. CDI is preferred over plain JSF backing beans because CDI allows for Java EE wide dependency injection. In a future release of JSF the @Managedbean...
jsf tutorials

Passing variables in JSF Flash Scope

This tutorial we’ll talk about JSF Flash Scope which is introduced in JSF 2.0 and is utilised when you need to pass parameters between views without the need to store them in the session....
jsf tutorials

Inject CDI Managed Bean

This tutorial we show you how to inject CDI managed bean into another. CDI is much more powerful then plain JSF managed beans. With JSF Managed beans you where limited to JSF beans only....
jsf tutorials

Inject JSF Managed Bean

This tutorial show how to inject JSF Managed Bean into another JSF Managed bean. In JSF 2.0 there is a new @ManagedProperty annotation. This annotation is used for dependency injection. We can Inject a...
jsf tutorials

Creating Lists and Maps as Managed Beans in JSF

This example explains how to use Lists and Maps as Managed Beans in JSF. It is recommend to put the managed beans in a separate managed-beans.xml file to keep a clear overview of managed...