beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djkuul <dhwa...@hotmail.com>
Subject What should happen- @ValidateRequired(enabled=false) ??
Date Mon, 07 Apr 2008 04:26:29 GMT

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.


Mime
View raw message