I am using the following annotation for validation on an Action method-

validatableProperties={ 
@Jpf.ValidatableProperty( 
displayName = "User Name ",
propertyName = "username",
validateRequired= @ValidateRequired(enabled=false))
}

If enabled is set to false, then the validate required rule should not be
applied but in this case the validate required rule IS Applied... WHY??

I want to do conditional validation, and hence am using the enabled = false.
Going ahead I want to substitute the value of enabled with a runtime
expression depending upon whether the validation has to be done or
not(decided on the jsp). Any ideas?

Appreciate any help, Thanks!
-- 
View this message in context: 
http://www.nabble.com/What-should-happen--%40ValidateRequired%28enabled%3Dfalse%29----tp16533317p16533317.html
Sent from the Beehive - Dev mailing list archive at Nabble.com.

Reply via email to