New JSF Managed Bean Wizard: Name and Location
See Also
JSF managed beans are JavaBean components that are managed by a JSF implementation.
A JSF managed bean describes how a bean is created and managed.
The New JSF Managed Bean wizard creates a new JSF managed bean. You open the New JSF Managed
Bean wizard by right-clicking a web application, choosing New > Other and selecting JSF
Managed Bean from the Java Server Faces category.
In the Name and Location page, you have to set the following properties:
- Class Name. Specifies the JSF managed bean class name.
- Project. Specifies the project in which the JSF managed bean will be located.
- Location. Specifies a folder to house the JSF managed bean.
- Package. Specifies a package within the location to house the JSF managed bean.
- Created File. Specifies the file of the new JSF managed bean.
- Configuration File. Specifies the JSF configuration file. If none exists, you
cannot create a JSF managed bean. To create a JSF configuration file quickly and efficiently,
right-click the project node, choose Properties and use the Frameworks panel. Not only
does this provide you with a JSF configuration file, but you also get the JSF 1.2 libraries
and a welcomeJSF.jsp file.
- Scope. Sets the scope of the JSF managed bean. Use the drop down list to set the
scope to one of the following:
- request. Request scope contains data specific to an individual
server request, and is discarded when the service method returns. This
is the most common scope usage in web applications, and is the default setting
for the IDE.
- session. Session scope contains data specific to a user session.
- application. Application scope contains data for the entire web
application.
- none. No scope is selected.
- Bean Description. Sets a description for the JSF managed bean.
- See Also
- About Web Application Frameworks
- Creating a New Application with JSF Support
- Adding JSF Support to an Existing Application
Legal Notices