我有一个用普通的旧 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 中正确使用我的命令链接?我在板载 JSF 2.0 和 ICEfaces 2.0.0 alpha3 时使用 Tomcat 6.0.26。
这种链接的一个例子是:
<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>.