This content has been marked as final.
Show 4 replies
-
1. Re: validators not working
scphantm.scphantm.gmail.com May 28, 2009 4:11 AM (in response to scphantm.scphantm.gmail.com)even this doesn't work
<s:decorate id="in_first_nameDecoration" template="/layout/edit.xhtml"> <ui:define name="label">#{messages.show_firstName}</ui:define> <h:inputText id="in_first_name" value="#{ecaTO.firstName}" required="true" pattern="\b[A-Z][A-Z\s]*[A-Z\s]\b"> <a:support event="onblur" reRender="in_first_nameDecoration" bypassUpdates="true" /> </h:inputText> </s:decorate>
-
2. Re: validators not working
scphantm.scphantm.gmail.com May 28, 2009 6:14 PM (in response to scphantm.scphantm.gmail.com)any ideas?
-
3. Re: validators not working
scphantm.scphantm.gmail.com May 28, 2009 7:59 PM (in response to scphantm.scphantm.gmail.com)could this be because its not recording to a database? does the hibernate validator fire when the field value is written to the field in the transfer object or when the TO is writing it to the database?
if it fires when its written to the database is there a way i can fire the validation manually and raise the exception myself?
i will download the source for hibernate and see if i can find anything useful there.
-
4. Re: validators not working
scphantm.scphantm.gmail.com May 28, 2009 8:54 PM (in response to scphantm.scphantm.gmail.com)figured it out, you have to annotate the getter, not the setter method