我有一个用普通旧式 JSF 编写的 Web 应用程序,我想将其部分迁移到 ICEfaces 以使用它的一些组件,即现在的确认面板。为了使用它,我更改了我的表单,其中包含需要确认从 h: 到ice: 标签库的链接。我使用的链接应该触发带有参数的方法。该参数通过 f:setPropertyActionListener 发送。但是,现在我遇到以下异常:
javax.faces.view.facelets.TagException:
/jsp/manageDomainTypes.xhtml @30,99 <f:setPropertyActionListener>
Parent is not of type ActionSource, type is:
javax.faces.component.UIOutput@14ea0724
如果我切换回 h taglib,异常就会消失并且一切正常。我哪里错了,我该怎么做才能正确使用 ICEfaces 中的命令链接?我使用 Tomcat 6.0.26 以及 JSF 2.0 和 ICEfaces 2.0.0 alpha3。
此类链接的一个示例是:
<ice:commandLink action="#{DomainTypeBean.openEditDomainType}">
<ice:graphicImage value="#{icon.edit}"/>
<f:setPropertyActionListener
target="#{DomainTypeBean.currentType}" value="#{domainType}" />
</ice:commandLink>
链接嵌套在
中<ui:define><ice:form><ice:panelGrid><ice:dataTable>.
最佳答案
冰面HtmlCommandLink
扩展了原来的,所以问题不在组件中。
我假设您错误地导入了,并且icefaces组件未解析。
关于java - f :setPropertyActionListener: Parent is not of type ActionSource导致的JSF标签异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3108427/