My page contains in place editor of values in table. Something like this:
<h:dataTable var="actor" value="#{bean.actors}">
<h:column>
<h:input value="#{actor.name}"/>
<h:column>
</h:dataTable>
I want all actors inside list bean.actors are validated when user clicks on save button. So I put following annotation inside my bean
@BeanValidation(useGroups = Default.class, modelValidation = @ModelValidation(isActive = true))
private List<Actor> actors;
Inside my actor object I have
@NotNull
private String name;
@AssertTrue
public boolean isValid()
So NotNull annotation is validated for all actors, but AssewtTrue does not validated.