blob: 5aae21cc4d331859d7848e77ed5bee6339b0dc07 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="../../book.css" type="text/css">
<title>Creating a Managed Bean</title>
<div class="section" lang="en">
<div class="titlepage">
<h1 class="Head" style="clear: both"><a name="create_managedbean"></a>Creating
Managed Bean</h1>
<p>You can create a managed bean and add it to your Web application
to bind bean properties and business logic to the user interface
components of the Java ServerPage (JSP).. Using the New Managed Bean
wizard, you can creat a managed bean from an existing Java class or by
creating a new Java class.</p>
<p class="strong"><span class="strong">To create a managed
<div class="orderedlist">
<ol type="1">
<p>Select<span class="strong"> faces-config.xml</span> in the <span
class="strong">Project Explorer</span> of the <span class="strong">J2EE</span>
<p>The JSF Application Configuration editor opens.</p>
<p>Select the <span class="strong">ManagedBean </span>tab of the
<p>The ManagedBean page appears.</p>
<p>Click <span class="strong">Add</span>.</p>
<p>The New Managed Bean Wizard appears.</p>
<p>Follow the wizard instructions.</p>
<p>The wizard displays help that assists you in the decisions that
you need to make.</p>
<div class="note">
<h3 class="title">Note</h3>
<p>Project names cannot contain spaces.</p>
<img src="../../images/ngrelc.png" alt="Related concepts" border="0">
<p><img src="../../images/ngrelr.png" alt="Related reference"
<p><a href="use_facesconfig_editor.html">Faces Config
<p><img src="../../images/ngrelt.png" alt="Related tasks" border="0">
<p><a href="../gettingstarted/tutorial/JSFTools_tutorial.html">Tutorial</a></p>