开发者

Dynamic Columns into ui:define

I have a data table in an开发者_开发知识库 xhtml with "ui:insert" space... In another xhtml i use ui:define to add some columns... the problem is that i have dynamic columns to insert.. i've already tryed with a4j:repeat, ui:repeat, c:foreach and rich:columns...

<rich:columns value="#{entity.dadosAdicionais}" var="col" >
    <h:outputText value="#{col.valor}" escape="false" />
    <h:outputText value="#{col.nome}" />
</rich:columns>

someone knows whats the problem with ui and rich components?


may be you can try like this.

<rich:columns value="#{entity.dadosAdicionais}" var="col"  index="index">

<f:facet name="header">    
        <h:outputText value="#{col.valor}" />    
    </f:facet>    

   <h:outputText value="#{model[index].model}" />
</rich:columns>

value= the modelValue for column.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜