I have the following input field:
<h:inputText value=".." validator="#{labController.validateValue}"/>
If the field is empty, it will not be checked ( validateValue in the labController not called).
But using a separate validation class:
<h:inputText value=".." > <f:validator validatorId="labDateValidator"/> </h:inputText>
can its validate method be called even with an empty input field?
This is what I am observing. Is this behavior implementation or version dependent (I'm using Mojarra 2.1)?
It is assumed that I want to use my own method / class for all validation tasks, including the required validation. Does it work only with the validator class?
source share