【发布时间】:2016-10-07 15:20:33
【问题描述】:
我已经创建了一个这样的自定义 facelets 标记:
<ui:composition xmlns...>
<h:form>
<h:commandLink action="#{controller.doSomething()}"/>
</h:form>
</ui:composition>
我正在尝试这样使用它:
<myNs:myTag>
<ui:param name="controller" value="#{theActualController}"/>
</myNs:myTag>
但是点击commandLink会导致以下异常:
Target Unreachable, identifier 'controller' resolved to null
这个问题facelets: passing bean name with ui:param to action attribute 看起来有些相似,但那里提出的解决方案对我不起作用。
【问题讨论】:
标签: jsf