BeanOne
@NotEmpty(groups = { Group1.class })
private String name;
BeanTwo
private EditableValueHolder myBinding;
priavet BeanOne beanOne;
xhtml
<h:inputText value="#{beanTwo.beanOne.name}" binding="#{beanTwo.myBinding}"/>
<button class="btn btn-primary"
jsf:action="#{beanTwo.save}">
Save
<f:ajax execute="@form" render="@form"/>
</button>
When I save the validation is not happening. When I remove binding on the input element, the bean validation is working.
Is there anything wrong in my code.