doc polish

This commit is contained in:
Keith Donald
2008-04-28 21:31:11 +00:00
parent d7a4a127c4
commit 16aee2d587
6 changed files with 85 additions and 108 deletions

View File

@@ -216,7 +216,7 @@ public void validateEnterBookingDetails(MessageContext context) {
<para>
The second way is to define a separate object, called a Validator, which validates your model object.
To do this, create a class that defines a public method with the name <code>validate${state}</code>, where <code>state</code> is the id of your view-state.
The method must declare a <code>Object</code> parameter to accept your model object, and a <code>MessageContext</code> parameter for recording validation error messages.
The method must declare a parameter to accept your model object, and a <code>MessageContext</code> parameter for recording validation error messages.
For example:
</para>
<programlisting language="java"><![CDATA[
@@ -332,6 +332,12 @@ checkinDate=Check in date must be a future date
notHealthy={0} is bad for your health
reservationConfirmation=We have processed your reservation - thank you and enjoy your stay]]>
</programlisting>
<para>
From within a view or a flow, you may also access message resources using the <code>resourceBundle</code> EL variable:
</para>
<programlisting type="properties"><![CDATA[
<h:outputText value="#{resourceBundle.reservationConfirmation}" />]]>
</programlisting>
</sect2>
</sect1>
<sect1 id="view-popup">