JBoss.orgCommunity Documentation
To store data in the application, we will use a managed bean.
Click on the Tree tab at the bottom of the editing window.
Select the Managed Beans node and then click the button displayed along the right side of the editor window.
Type in jsfHello.PersonBean for Class and personBean for Name. Leave the Scope selection as is and leave the Generate Source Code checkbox checked.
Click the
button.personBean will now be selected and three sections of information: Managed Bean, Properties, and Advanced will be displayed about it. Under the Properties section, click the button.
Type in name for Property-Name. Leave everything else as is. (When Property-Class is not filled in, String is the assumed type.)
Click the
button.Select the personBean node in the tree.
You should see this now:
Select
→ from the menu bar.You have now registered the managed bean and created a stub-coded class file for it.