隐式表达语言对象"component"在jsf 2.2.6中不起作用 [英] Implicit expression language object "component" not working in jsf 2.2.6

查看:178
本文介绍了隐式表达语言对象"component"在jsf 2.2.6中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将jsf 2.0应用程序迁移到jsf 2.2.6.

I'm migrating a jsf 2.0 application to jsf 2.2.6. There is a extensive use of implicit EL object component as styleClass="#{component.valid?'':'err'}".

在jsf 2.2.6(jsf-impl-2.2.6-jbossorg-4.jar)中,有效值无法识别,并抛出"ServletException:类'javax.faces.component.html.xxx'不具有该属性有效".

In jsf 2.2.6 (jsf-impl-2.2.6-jbossorg-4.jar) valid is not recognized, throwing "ServletException: The class 'javax.faces.component.html.xxx' does not have the property 'valid".

此功能是否在jsf 2.x.x中被弃用?

Is this functionality deprecated in jsf 2.x.x?

可以与JBoss EL相关吗?

Can be related to JBoss EL?

推荐答案

最终找到了异常原因.问题是我在包含"component.valid"的代码中有一个注释.删除评论即可解决问题.

Finally found the reason of the exception. The problem was that I had a comment in the code containing "component.valid". Removing the comment resolves the problem.

<!-- styleClass="#{component.valid ? '': 'err' }" -->

这很棘手.关于代码行,尚不清楚.

It's tricky. The exception was not clear about the line of code.

这篇关于隐式表达语言对象"component"在jsf 2.2.6中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆