将标记处理程序添加到JSF 2.1组合组件

时间:2011-10-20 12:53:52

标签: java jsf-2 facelets composite-component

我有自定义组件

<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来处理组件,但我真的不知道如何将它附加到我的自定义组件。

0 个答案:

没有答案