Re: validator shortcuts idea

2007-10-16 Thread Jim Cushing
Despite the redundancy, having separate validators is nice since it  
allows you to customize the error message. For example, you might  
want to say, "Please enter your age," "Age must be a valid number,"  
and, "You must be at least 13 years old to ride this ride."


On Oct 16, 2007, at 3:44 PM, stanlick wrote:



I am discovering that duplicate field validators in S2 are a royal  
pain in

the tucas!  Remember the good old days when we could say age field
depends="required,int"  Now we need to specify two entirely  
separate field
validators!  I realize a field input may not *necessarily* be  
required, but

once entered needs to be validated.  What about having validators like
intRequired instead of two different validators?  This way we could  
pick

from a smarter validator crop and let the magic happen there.

Scott
--
View this message in context: http://www.nabble.com/validator- 
shortcuts-idea-tf4636405.html#a13241115

Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



validator shortcuts idea

2007-10-16 Thread stanlick

I am discovering that duplicate field validators in S2 are a royal pain in
the tucas!  Remember the good old days when we could say age field
depends="required,int"  Now we need to specify two entirely separate field
validators!  I realize a field input may not *necessarily* be required, but
once entered needs to be validated.  What about having validators like
intRequired instead of two different validators?  This way we could pick
from a smarter validator crop and let the magic happen there.

Scott
-- 
View this message in context: 
http://www.nabble.com/validator-shortcuts-idea-tf4636405.html#a13241115
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]