O'Reilly logo

Advanced Java® EE Development with WildFly® by Deepak Vohra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a managed bean

A managed bean is a Java bean managed by the JSF Managed Bean Facility. A managed bean is registered with JSF and instantiated when first invoked. In this section, we will create a JSF managed bean for the Facelets composition pages. Right-click on faces-config.xml and select Open With | Faces Config Editor, as shown in the following screenshot:

Creating a managed bean

The Faces Config Editor gets started. Click on Add to add a managed bean, as shown in the following screenshot:

Creating a managed bean

In the New Managed Bean Wizard, select Create a new Java class in Java ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required