I have solved this problem with a workaround. I have added an inputHidden
field that has the required
attribute true
that will not appear on the interface, but will be validated:
<h:inputHidden value="#{bean.value}" required="true"
requiredMessage="Data must be entered" />
The value of bean.value is changed by other event, and at some reRender on the inputHidden, the validation takes place.