JSF 1.2验证器不会在禁用字段上触发

时间:2016-08-26 06:50:33

标签: jsf

我正在使用IBM JSF 1.2,并且我已经意识到验证器不会在禁用的字段上触发。
这是片段:

<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>

有没有办法让jsf在禁用字段上运行验证器方法?
我需要检查是否根据此禁用的字段值输入了其他字段...

0 个答案:

没有答案
相关问题