开发者

Dynamic Columns into ui:define

开发者 https://www.devze.com 2023-04-09 16:02 出处:网络
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 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

精彩评论

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