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:
JSF has its own validation system. You could probably create an XSL to take an XForms definition and transform it into a JSF View, but the elements involved are totally different.
In addition to the basic JSF validators, you might also be interested in the MyFaces validator extensions, which allow JSF-based views to validate based on annotations in the backing beans and in the domain model objects.
IIRC, JBoss Seam also devotes a fair amount of coverage to input validation.
There's a whole standard in the works for validations, but it's still in progress.
An IDE is no substitute for an Intelligent Developer.