This content has been marked as final.
Show 5 replies
-
1. Re: s:validate and facelets tag (source) file
norman.richards May 11, 2006 11:16 AM (in response to pmuir)I think the original design of s:validate let you specify the property name. It doesn't seem to be there now. I wonder why it was removed.
-
2. Re: s:validate and facelets tag (source) file
gavin.king May 11, 2006 11:48 AM (in response to pmuir)If all we have is the attribute value, there is no way to figure out the class of the owning object, and what validations should be applied.
-
3. Re: s:validate and facelets tag (source) file
pmuir May 11, 2006 1:08 PM (in response to pmuir)Would you accept/consider a patch to allow
<s:validate property="model.field" />
where property could be a static value or EL that evaluated to a String. The property attribute version would need to take precedence over the value attribute for working out model.field.
Or should I maintain myself?
Peter -
4. Re: s:validate and facelets tag (source) file
pmuir May 17, 2006 6:31 AM (in response to pmuir)In case anyone else finds it useful I've put my solution here:
http://jroller.com/page/pmuir?entry=modelvalidator
I did a fairly simple modification to the Seam code and added a handler to accomodate EL expressions for the property attribute -
5. Re: s:validate and facelets tag (source) file
jpviragine Jan 18, 2007 10:35 AM (in response to pmuir)Mr Muir,
Have you the latest version of this component?
Thanks,
Joao Paulo