Conditional Annotation based Validation

2009-01-07 Thread Dirk Forchel
Name = "number1", message = "The first part of the number must be 8 digits long."), } ) public String execute() throws Exception { ... } How can I accomplish this conditional annotation based validation? -- View this message in context: http://www.nabble.com/Con

Re: Conditional Annotation based Validation

2009-01-07 Thread Dave Newton
, fieldName = "number1", message = "The first part of the number must be 8 digits long."), } ) public String execute() throws Exception { ... } How can I accomplish this conditional annotation based validation? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Conditional Annotation based Validation

2009-01-07 Thread Dirk Forchel
ieldvalidator(type = >> ValidatorType.SIMPLE, trim = true, minLength="8", maxLength = "8", >> fieldName >> = "number1", message = "The first part of the number must be 8 digits >> long."), >> } >> ) >>

Re: Conditional Annotation based Validation

2009-01-08 Thread Greg Lindholm
", >>> fieldName >>> = "number1", message = "The first part of the number must be 6 digits >>> long."), @StringLengthFieldValidator(type = ValidatorType.SIMPLE, trim = >>> true, mi

Re: Conditional Annotation based Validation

2009-01-08 Thread Dirk Forchel
;> >>>> @Validations( >>>>requiredStrings = {...@requiredstringvalidator(type = >>>> ValidatorType.SIMPLE, >>>> fieldName = "name", message = "You must enter a name.")}, >>>>

Re: Conditional Annotation based Validation

2009-01-09 Thread Greg Lindholm
= ValidatorType.SIMPLE, fieldName = > "number1", message = "You must enter a value for number1."), > @RequiredStringValidator(type = ValidatorType.SIMPLE, fieldName = > "number2", message = "You must enter a value for number2.") >

Re: Conditional Annotation based Validation

2009-01-09 Thread Dirk Forchel
MPLE, fieldName = >> "name", message = "You must enter a value for name."), >> @RequiredStringValidator(type = ValidatorType.SIMPLE, fieldName = >> "number1", message = "You must enter a value for number1."), >> @RequiredStringVa