SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 120 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

7.3 New JSF Page
Similarly, add a JSF Page, catalog.jsp, to be displayed if a catalog
entry gets created without error, and also add a JSF Page, error.jsp, to be
displayed if an error occurs in creating a catalog entry. For the catalog.jsp
and error.jsp JSF pages select Do Not Automatically Expose UI
Components in a Managed Bean in Page Implementation. We also
need to add the lib/Ajax4jsf.jar and lib/oscache-2.3.2.jar from the
Ajax4jsf binary distribution to the project. To add a library to Ajax4jsf
project select Tools>Project Properties. In the Project Properties
window select Libraries and add a JAR file with Add Jar/Directory.
Also add libraries Commons Beanutils 1.6.1, Commons Collections 2.1,
Commons Logging 1.0.3, and Commons Digester 1.5 with Add Library.
The project libraries for the Ajax4jsf project are shown in Fig. 7.4.
7.4 Creating an Ajax4jsf Application 137
Fig. 7.4 Ajax4jsf Application Libraries
Copy the JAR files, ajax4jsf.jar and oscache-2.3.2.jar, from the lib
directory of the Ajax4jsf binary distribution to the WEB-INF/lib directory
of the Ajax4jsf application. The directory structure of the Ajax4jsf
application is shown in Fig. 7.5.
138 7 Ajax with JSF-Ajax4jsf
Fig. 7.5 Ajax4jsf Application Directory Structure
Next, we shall create an input form for a catalog entry using JSF
components. First, add a Panel Grid component to the input.jsp page from
the JSF HTML component library as shown in Fig.


Pages:
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132