I've created a custom facelets tag like this:
<ui:composition xmlns...>
<h:form>
<h:commandLink action="#{controller.doSomething()}"/>
</h:form>
</ui:composition>
And I'm trying to use it like this:
<myNs:myTag>
<ui:param name="controller" value="#{theActualController}"/>
</myNs:myTag>
But a click on the commandLink leads to the following exception:
Target Unreachable, identifier 'controller' resolved to null
This question facelets: passing bean name with ui:param to action attribute looks somewhat similar, but the solution proposed there did not work for me.