The JSF application consists of an input form for a
catalog entry. The form consists of field Catalog ID, Journal, Publisher,
Edition, Title, and Author. The form requires a unique Catalog ID, which
is dynamically validated on the server and a message displayed to indicate
the validity of the Catalog ID. First, create a JDeveloper application with
File>New. Select General in the Categories and Application in the Items
in New Gallery window. Click on OK. In the Create Application
window specify an application name and click on OK. In the Create
Project window specify a project name and click on OK. An application
and a project get added to the Application-Navigator. Next, create a JSF
page. Select File>New and select Web Tier>JSF in Categories in the
New Gallery window. Select JSF Page in Items and click on OK as
shown in Fig. 7.1.
1 Download Ajax4jsf- http://labs.jboss.com/jbossajax4jsf/
134 7 Ajax with JSF-Ajax4jsf
Fig. 7.1 Selecting JSF Page
In the Create JSF Page window specify a File Name, input.jsp, and
in Page Implementation select Automatically Expose UI Components
in a new Managed Bean and click on OK as shown in Fig. 7.2.
7.4 Creating an Ajax4jsf Application 135
Fig. 7.2Creating a JSF Page
A JSF page gets created and taglib declarations for the JSF Core 1.0
and JSF HTML 1.0 libraries get added to the JSF page by default as shown
in Fig. 7.3.
136 7 Ajax with JSF-Ajax4jsf
Fig.
Pages:
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131