[ 
https://issues.apache.org/struts/browse/WW-2485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zahid Nazir updated WW-2485:
----------------------------

    Summary: Annotation validations (@StringFieldValidator, 
@StringLengthFieldValidator) doesn't work while @RequiredStringValidator 
doesn't do shortcircuiting  (was: Annotation valiations (@StringFieldValidator, 
@StringLengthFieldValidator) doesn't work while @RequiredStringValidator 
doesn't do shortcircuiting)

updated header for typo.

> Annotation validations (@StringFieldValidator, @StringLengthFieldValidator) 
> doesn't work while @RequiredStringValidator doesn't do shortcircuiting
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2485
>                 URL: https://issues.apache.org/struts/browse/WW-2485
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Validators
>    Affects Versions: 2.0.11
>         Environment: Windows XP SP2, Struts 2.0.11, Jetty 6.0.1
>            Reporter: Zahid Nazir
>
> Validation doesn't occur and no message is thrown back when annotating 
> setters (I checked getter too but to no affect),see below
> //    @StringLengthFieldValidator(message="Default message", 
> key="errors.required.first", shortCircuit=true, trim=true, minLength="1", 
> maxLength="35")
> //    @RequiredFieldValidator(message = "You must enter a string value for 
> first...", key="errors.required.last", shortCircuit=false)
>       @RequiredStringValidator(message = "First", 
> key="errors.required.first", shortCircuit=true, trim=true)  
>       public void setFirst(String first) {
>               this.first = first;
>       }
> Validation does get invoked for @RequiredStringValidator but then 
> shortCircuit doesn't work. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to