This content has been marked as final.
Show 5 replies
-
1. Re: Partial validation
pmuir May 17, 2006 9:00 AM (in response to guilhermesilveira)You could try using the <s:validate> ui component; it will validate just the field it is attached to using the hibernate validator. I've found it a much more flexible/robust approach (but it does require you to add the tag to each input - potentially a big job!)
-
2. Re: Partial validation
gavin.king May 17, 2006 11:52 AM (in response to guilhermesilveira)Actually, if you use <s:validateAll>, you don't need a tag on each input, just one that surrounds all the inputs you want to validate.
by the way, I am migrating the Seam examples away from @IfInvalid. It was a nice experiment, but experience has show it is not the best approach. -
3. Re: Partial validation
guilhermesilveira May 17, 2006 12:40 PM (in response to guilhermesilveira)Are the new examples only on the repository on already in the latest release?
Guilherme -
4. Re: Partial validation
zeddmaxim Aug 1, 2006 4:33 PM (in response to guilhermesilveira)"gavin.king@jboss.com" wrote:
Actually, if you use <s:validateAll>, you don't need a tag on each input, just one that surrounds all the inputs you want to validate.
by the way, I am migrating the Seam examples away from @IfInvalid. It was a nice experiment, but experience has show it is not the best approach.
If @IfInvalid is no longer the best approach, what is now the recommended approach? Pointers to any other posts or docs would be appreciated on this subject. -
5. Re: Partial validation
gavin.king Aug 2, 2006 12:42 PM (in response to guilhermesilveira)<s:validate> / <s:validateAll>, as per the examples in the current Seam release.