Create a Managed Bean
Show me
Tell me more
-
In the Applications Navigator, expand the Web
Content tree under the project you created.
-
Expand the WEB-INF tree and open the
faces-config.xml
file.
-
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.
-
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 about what I see in the IDE
-
In the Overview tab, select the managed
bean you just created and click New in the
Managed Properties area of the main panel.
-
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.
-
In the Overview tab, select the managed
property you just created and click Edit
in the Managed Properties area.
-
Set the value property to
#{param.name}
and click
OK.
Tell me more about what I see in the IDE
-
From the File menu, choose
Save.
Next step
Copyright © 1997, 2006, Oracle. All rights reserved.