2.1.5.2. Add Existing Java Beans to a JSF Configuration File

If you already have a Java bean you can easily add it to a JSF configuration file.

You should start the same way you create a new managed bean. Use the Browse... button to add your existing Java class.

New Managed Bean Form

Figure 2.43. New Managed Bean Form


Once the class is set, it's Name will be set as well. But you can easily substitute it for the other one. Notice that Generate Source Code option is not available as the "Java" class already exists.

After adding your class Next button will be activated. Pressing it you'll get Managed Properties dialog where all corresponding properties are displayed. Check the necessary ones to add them into your JSF Configuration File.

Selection of Bean's Properties.

Figure 2.44. Selection of Bean's Properties.


If you don't want to add any, just click Finish.