jsf - 异常 EL 表达式不平衡 :

标签 jsf jsf-2 primefaces

我在我的 Web 应用程序中使用 JSF。我正在将参数从我的复合组件传递给 bean,但我收到了 EL 表达式不平衡异常。下面是我正在尝试使用的代码。

<h:panelGroup binding="#{datatableManagedBean.getDynamicDataTableGroup(#{cc.attrs.id})"/>

但我低于异常(exception)
javax.el.ELException: EL Expression Unbalanced: ... #{datatableManagedBean.getDynamicDataTableGroup(#{cc.attrs.id})
    at com.sun.faces.facelets.el.ELText.findVarLength(ELText.java:476)
    at com.sun.faces.facelets.el.ELText.parse(ELText.java:396)
    at com.sun.faces.facelets.el.ELText.parse(ELText.java:347)
    at com.sun.faces.facelets.el.ELText.parse(ELText.java:338)
    at com.sun.faces.facelets.el.ELText.isLiteral(ELText.java:321)
    at com.sun.faces.facelets.tag.TagAttributeImpl.<init>(TagAttributeImpl.java:127)

Ant 的帮助将非常可观。提前致谢。

最佳答案

不要在另一个 EL 中使用 EL 表达式,你也忘记关闭第一个 EL

使用它并注意差异
#{datatableManagedBean.getDynamicDataTableGroup(cc.attrs.id)}

关于jsf - 异常 EL 表达式不平衡 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21281500/

相关文章:

spring - 如何在 Spring 3.1 应用程序中声明 JSF 托管 bean?

javascript - 检查 p :fileUpload component contains any file to upload, 是否改变背景

jsf-2 - 使用 primefaces 确认对话框组件显示来自托管 bean 的消息

css - PrimeFaces RowEditor - 不显示图标

java.lang.IllegalStateException : No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)

html - 为什么我看不到 HTML 5 <dialog>?

jsf - f :setPropertyActionListener not invoked

jsf - JSF/Liferay 6.2 多次包含 Javascript 文件

java - 获取 selectOneMenu 选定值

java - 如何传递h :inputText to a bean in action的一些ID