我有一个用普通的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>.
最佳答案
icefaces HtmlCommandLink
扩展了原始的,所以问题不在组件中。
我假设您错误地导入了并且icefaces组件未解决。