This content has been marked as final.
Show 2 replies
-
1. Re: JSF and Bean Validation group integration
nickarls Nov 24, 2010 4:27 AM (in response to nickarls)Any theories?
-
2. JSF and Bean Validation group integration
hmvictor Feb 1, 2011 3:22 PM (in response to nickarls)Hi.
The tag f:validateBean has an attribute to specify the validation groups (a list of the classes of the groups). You can set it to a value expression so you can have a group when in "edit" mode" and another group when in "new" mode.
Example:
<h:inputText value="#{bean.name}">
<f:validateBean validationGroups="#{bean.validationGroups}"/>
</h:inputText>