This content has been marked as final.
Show 3 replies
-
1. Re: s:validate ignores annotations if custom validator speci
pmuir Aug 14, 2007 4:41 PM (in response to asavitsky)It shouldn't be ignored (n.b. s:validateAll won't attach a ModelValidator if there is another one specified). I think you need:
<h:inputText value="#{selectedUser.email}" validator="#{userController.validateEmail}" > <s:validate /> </h:inputText>
-
2. Re: s:validate ignores annotations if custom validator speci
asavitsky Aug 14, 2007 4:51 PM (in response to asavitsky)Looks like I mixed up the two. It's the validateAll that I used (with s:decorate, as per Seam examples), and yes, it now works with s:validate - thanks.
Now, I take it, there's no way to incorporate s:validate in s:decorate template (as it goes inside the input field), is there? :( -
3. Re: s:validate ignores annotations if custom validator speci
pmuir Aug 14, 2007 5:06 PM (in response to asavitsky)No, I don't think so. You could always use version of s:validateAll that did add validators even if there are some already added.