I am using IBM JSF 1.2 and I've realized that validator wouldn't fire on disabled field.
Here is the snippet:
<h:outputLabel id="lblContainerGoesOnShip" styleClass="outputLabel"
value="#{msg.lblContainerGoesOnShip}" for="inputContainerGoesOnShip"></h:outputLabel>
<h:selectOneMenu styleClass="selectOneMenu"
validator="#{bakedBean.validateContainerGoesOnShip}"
value="#{bakedBean.container.containerGoesOnShip}"
disabled="true"
onchange="toggleElements()"
id="inputContainerGoesOnShip">
<f:selectItems value="#{selectItemsFactory.yesNoEmptySelectItems}" />
</h:selectOneMenu>
<h:message id="messageContainerGoesOnShip" for="inputContainerGoesOnShip" styleClass="message"></h:message>
Is there a way to make jsf to run validator method on disabled field?
I need to check if some other field is entered based on this disabled field value ...