我有自定义组件
<composite:interface>
<composite:attribute name="var"></composite:attribute>
</composite:interface>
<composite:implementation>
<h:dataTable var="#{cc.attrs.var}">
<composite:insertChildren/>
</h:dataTable>
</composite:implementation>
不起作用,因为dataTable var属性不接受EL表达式。 怎么解决这个?我找到了一个旧的解决方案,建议编写一个自定义TagHandler来处理组件,但我真的不知道如何将它附加到我的自定义组件。