有条件的要求不能在JSF 2中工作

时间:2014-11-07 15:46:30

标签: jsf-2.2

我有一些代码在jsf 1.2中正常运行,但它不在jsf 2.2中。这是一个有条件的必填字段:

<h:inputText value="#{gestorEmpleados.nombre}" id="textNombre" 
        required="#{gestorEmpleados.opARealizar=='insertar' or
                    gestorEmpleados.opARealizar=='modificar'}"

gestorEmpleadosSessionScoped bean。我在opARealizar属性的getter方法中有一个断点,它总是返回'eliminar',因此该条件表达式的结果应为'false'。但是该领域总是存在验证错误。

有什么想法吗?

0 个答案:

没有答案