Create a Managed Bean

show me how icon Show me           tell me more icon Tell me more

  1. In the Applications Navigator, expand the Web Content tree under the project you created.
  2. Expand the WEB-INF tree and open the faces-config.xml file.
  3. In the Overview tab of the JSF Configuration Editor, select Managed Beans from the left-hand column (containing the main JSF configuration elements) and click New in the top area of the main panel.
  4. In the Create Managed Bean dialog, enter a name for the bean (for example, mb_telnet), enter a fully qualified class name (for example, telnetPackage.NameBean), and click OK.
    tell me more icon Tell me more about what I see in the IDE
  5. In the Overview tab, select the managed bean you just created and click New in the Managed Properties area of the main panel.
  6. In the Create Managed Property dialog, enter a name (for example, name) for the property, enter java.lang.String as the class, and click OK.
  7. In the Overview tab, select the managed property you just created and click Edit in the Managed Properties area.
  8. Set the value property to #{param.name} and click OK.
    tell me more icon Tell me more about what I see in the IDE
  9. From the File menu, choose Save.

cue cards icon Next step