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

Deepak Vohra

"Ajax in Oracle JDeveloper"

inputText6}???
id=???inputText6???/>
binding=???#{backing_input.commandButton1}???
action=???#{backing_input.commandButton_action}???
id=???commandButton1???/>
binding=???#{backing_input.outputText1}???
id=???outputText1???/>




<%-- oracle-jdev-comment:auto-binding-backing-beanname:
backing_input--%>
Modify catalog.jsp to output a message that a catalog entry has been
created and modify error.jsp to output a message that an error has been
generated in updating the database.
148 7 Ajax with JSF-Ajax4jsf
7.6 Processing an Ajax Request
On the server-side the Catalog ID field value is validated with the database
table Catalog. If the Catalog ID value is already specified in the database a
validation message, ???Catalog Id is not valid??? gets displayed in the input
form. If the Catalog ID value is not already specified in the database, a
validation message, ???Catalog ID is valid??? gets displayed in the input form.
We have used the business logic that if a catalog id is not already defined
the catalog id is valid. Additional business logic may be added to check if
the catalog id matches a pattern specified in a regular expression. The
inputText_action method gets invoked when a value is specified in
the Catalog ID input field. An Ajax request is sent with each modification
in the Catalog ID input field.


Pages:
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139