struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Don Brown (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (WW-2306) @StringLengthFieldValidator annotation fires a different times according to placement
Date Fri, 13 Jun 2008 00:14:05 GMT

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


Mime
View raw message