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

Don Brown resolved WW-2306.
---------------------------

       Resolution: Cannot Reproduce
    Fix Version/s:     (was: 2.1.4)

Please reopen if you can provide more information to replicate the issue.

> @StringLengthFieldValidator annotation fires a different times according to 
> placement
> -------------------------------------------------------------------------------------
>
>                 Key: WW-2306
>                 URL: https://issues.apache.org/struts/browse/WW-2306
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Ted Husted
>
> Express a @StringLengthFieldValidator  using the idiom 
> @Validations (
>         stringLengthFields  = { 
>                 @StringLengthFieldValidator(fieldName="password1", 
> key="error.password.length", message="", trim = true, minLength = "4",  
> maxLength = "12")
>       })
> on an alias method, and it fires before any validations (such as 
> @RequiredString), short -circuiting them, even when short-circuit is not set. 
>  It also fires when input is empty (rather than at >0). 
> The same thing happens when the annotation is applied to the get method. 
>       @StringLengthFieldValidator(fieldName="password1", 
> key="error.password.length", message="", trim = true, minLength = "4",  
> maxLength = "12")    
>     @ExpressionValidator(key="error.password.match", message="", 
> expression="password1 eq password2" )    
>     public String execute() throws Exception {        
> Ideally, @StringLengthFieldValidator should fire at the same time  
> @EmailValidator and the like fire. 
> -Ted.

-- 
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