Hi,
I have just upgraded from JBoss 4.0.5 to 4.2.1, and at the same time upgraded to Seam 2 from 1.2.1.
Everything is working fine except the hibernate validations, which don't seem to be working at all.
This is my setup that was working with Seam 1.2.1
<s:decorate id="contactNoDecoration" template="layout/edit2.xhtml"> <h:inputText id="contactNo" required="true" value="#{CaptureLead.contactNo}" class="input" style="width:100%"> <a:support event="onblur" reRender="contactNoDecoration" /> </h:inputText> </s:decorate>
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:s="http://jboss.com/products/seam/taglib"> <span class="value #{invalid?'errors':''}"> <s:validateAll> <ui:insert /> </s:validateAll> </span> <s:message styleClass="error errors" /> </ui:composition>
@Pattern(regex = "[0-9]{10}", message = "{validator.form.contactNo}") public String getContactNo() { return contactNo; }