oncomplete-JavaScript code to
invoke after an Ajax request
completes.
reRender-Specifies a comma
separated list of component Ids that
are updated with the Ajax response.
requestDelay-Specifies number of
seconds delay (ms) to send an Ajax
request.
event-JavaScript event that initiates
an Ajax request.
binding-Component binding.
132 7 Ajax with JSF-Ajax4jsf
Table 7.1 (continued)
Component Description Attributes
Provides
component
grouping in
the output area
that is updated
with Ajax
response. The
page area
specified by
this
component
may be
updated in
addition to the
components
specified in
reRender
attribute of a
component
that initiates
an Ajax
request.
layout-Specifies HTML layout for
generated markup. A value of ???block???
generates a element. A value of
???inline??? generates a
element.
style-Specifies CSS stylesheet.
ajaxRendered-Specifies if the component
is to be updated in addition to the
components updated with reRender.
Generates
multi-media
output.
mimeType-Mime-type of generated
content, for example, image/jpeg.
Provides a
form that
submits with
Ajax.
reRender,oncomplete,requestDelay,bindi
ng
7.3 Setting the Environment
We shall develop a form validation application using JSF UI components
and Ajax4jsf. The form shall be used to create catalog entries in a
database table; a catalog entry has a unique field, catalog ID, and consists
of columns journal, publisher, edition, title, author.
Pages:
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129