Java Reference
In-Depth Information
argument values.</p>
<p>If you select Shift, the CoderImpl bean will return a string
that
shifts the letters in the original string by the value you
specify.
The value must be between 0 and 26.</p>
<h:form id="encodeit">
<h:selectOneRadio id="coderType"
required="true"
value="#{coderBean.coderType}">
<f:selectItem
itemValue="1"
itemLabel="Test"/>
<f:selectItem
itemValue="2"
itemLabel="Shift Letters"/>
</h:selectOneRadio>
...
Running the producermethods Example
You can use either NetBeans IDE or Ant to build, package, deploy, and run the produ-
cermethods application.
To Build, Package, and Deploy the producermethods Example Using NetBeans IDE
1. From the File menu, choose Open Project.
2. In the Open Project dialog, navigate to:
tut-install /examples/cdi/
3. Select the producermethods folder.
4. Select the Open as Main Project check box.
5. Click Open Project.
6. In the Projects tab, right-click the producermethods project and select
Deploy.
To Build, Package, and Deploy the producermethods Example Using Ant
1. In a terminal window, go to:
tut-install /examples/cdi/producermethods/
2. Type the following command:
ant
Search WWH ::




Custom Search