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

Deepak Vohra

"Ajax in Oracle JDeveloper"

The baseUrl attribute of the ajax:updateField
tag specifies the server URL to which the Ajax request is sent. The
source attribute specifies the form field that specifies the parameter to be
sent with the Ajax request. The target attribute specifies a commaseparated
list of form fields that are to be filled with response from the
server. The action attribute specifies the ID of the form button or image
that initiates an Ajax request. The parser attribute specifies the parser to
be used to parse the server response. The default parser is
ResponseHtmlParser. If the response is XML, set the parser to
ResponseXmlParser. The parameters attribute specifies the list of
parameters to be sent to the server.
baseUrl=???formupdateservlet???
source=???catalogId???
target=???journal,publisher,edition,title,author???
action=???updateForm???
parser=???new ResponseXmlParser()???
parameters=???catalogId={catalogId}??? />
6.5 Validating a Form with AjaxTags 119
In the example application the baseUrl is formupdateservlet.
As formupdateservlet is mapped to FormUpdateServlet the
Ajax request is sent to FormUpdateServlet. The source attribute is
set to catalogId and the parameters attribute is also set to
catalogId, the field value that is sent with the Ajax request. The
action attribute is set to updateForm, a button ID in the form. The
target attribute is set to journal, publisher, edition,title,
author, and the form fields that are to be filled with the server response.


Pages:
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119