【发布时间】:2016-08-02 00:57:42
【问题描述】:
我正在尝试创建自己的数据表,就像 primefaces 一样。问题是cc.attrs.var 在使用时会抛出 IllegalArgumentException。所以我想知道如何才能拥有像 Primefaces 这样的 var 属性。
<cc:interface>
<cc:attribute name="value"/>
<cc:attribute name="var"/>
<cc:attribute name="styleClass"/>
</cc:interface>
<cc:implementation>
<div>Previous</div>
<div>Next</div>
<h:dataTable value="#{cc.attrs.value}" var="#{cc.attrs.var}" styleClass="#{cc.attrs.styleClass}">
<ui:insert/>
</h:dataTable>
</cc:implementation>
【问题讨论】:
标签: jsf datatable composite-component