|
Seam adds annotated validations to the JSF platform; this is explored under the element descriptor, in the area of validators.
When validation components are associated with the form field entry components, this specification becomes redundant. This is because the presence of such validation components implies server-side validations, and such specification is on component by component basis, and not on the form level.
When annotations are in use, the validation is not reflected on the input element but the value bound object/attribute. This validation must be turned on explicitly.
This could be achieve for individual input element with the s:validate component.
<h:inputText id="username" value="username" >
<s:validate/>
</h:inputText>
If the the server-validate is set to true, all the elements could be specified for server side validations, if such is applicable, with the s:validateAll component, as shown below.
<s:validateAll >
....input elements
</ s:validateAll >
|