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 118 | Next

Deepak Vohra

"Ajax in Oracle JDeveloper"

The Ajax web
technique is used to dynamically validate a catalog ID. Without Ajax the
complete form has to be posted to the server to check if a catalog ID is
valid. If the specified catalog ID is already in the database, the form has to
be re-submitted with another catalog ID. With Ajax a catalog ID may be
7.4 Creating an Ajax4jsf Application 133
dynamically validated as the value is specified in the catalog entry form.
Catalog entries shall be stored in Oracle database, therefore, first we
install Oracle Database 10g, including sample schemas, and create a
database instance ORCL. Create a database table with SQL script in
following listing.
CREATE TABLE OE.Catalog(CatalogID VARCHAR(25)
PRIMARY KEY, Journal VARCHAR(25), Publisher
VARCHAR(25),
Edition VARCHAR(25), Title Varchar(255), Author
Varchar(25));
INSERT INTO OE.Catalog VALUES('catalog1', 'Oracle
Magazine', 'Oracle Publishing', 'July-August 2006',
'Evolving Grid Management', 'David Baum');
INSERT INTO OE.Catalog VALUES('catalog2', 'Oracle
Magazine', 'Oracle Publishing', 'July-August
2005','Tuning Undo Tablespace', 'Kimberly Floss');
Install JDeveloper 11g, which supports JSF 1.1. Download the Ajax4jsf
binary distribution1 zip file, jboss-ajax4jsf-1.1.0.zip. Extract the zip file to
a directory.
7.4 Creating an Ajax4jsf Application
In this section we shall create a JSF application and add Ajax functionality
to it with Ajax4jsf.


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