Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between rich:column and rich:columns

Can anyone tell me the difference between rich:column and rich:columns?

like image 834
meenus Avatar asked May 02 '11 11:05

meenus


1 Answers

You are using rich:columns when you want to create columns dynamically

Eg:

<rich:columns value="#{dataTableScrollerBean.columns}" var="columns" index="ind">

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

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

</rich:columns>

while you're using rich:column when you simply have a column in a rich:dataTable

<rich:column>

    <f:facet name="header">
        <h:outputText value="Price" />
    </f:facet>

    <h:outputText value="Price" />

</rich:column>

Details here

like image 76
Cristian Boariu Avatar answered Nov 07 '22 11:11

Cristian Boariu