Hi,
Does anyone know if it is possible to use the facets of an XML Schema element to validate input to a form. So, for example if one had the following snippet in an XSD file somehow referenced to a
JSF component:
<xs:element name="length">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="10"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
an error would be triggered if a value of '11' was entered. I've seen similar things done with XForms, but I would really like to stick with JSF. Any help much appreciated.
Thanks.
Rory