beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djkuul <>
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-

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:
Sent from the Beehive - Dev mailing list archive at

View raw message