If
you will use it to freely display any content entered by a random user,
someone might enter a hostile script and achieve sinister results that you
cannot even imagine.
All right, we had enough of work and study in this chapter. Now we can relax and
review what was done.
Summary
We have learned to use four powerful and useful components??”Grid,
BeanEditForm, DateField and FCKEditor. They can save us a lot of work since with
minimal configuration, they produce a rather sophisticated, functionally rich piece of
interface. We have also found out that:
We can change the way an object is displayed by Grid and BeanEditForm
components, in terms of which properties are displayed and how they
are ordered.
We can override the default rendering of a property by Grid or the default
editor selected for it by BeanEditForm, using the
element.
We can modify the titles of the columns in the Grid or the labels of the fields
in the BeanEditForm by providing appropriate messages in the application's
message catalog.
We can change the appearance of the components by overriding the default CSS
styles in the stylesheet that we provide ourselves.
We already have several controls that accept user input in the application, but
nowhere have we checked what kind of input is submitted so far.
Pages:
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206