Joffrey Hernandez
Joffrey Hernandez

Reputation: 1846

Display in cell from Datatable all content from one List

Actually i fed a datatable by a List.

I want to display in one cell another List from object and display all the content .

I never see this case before, it's possible to do that ?

Anyone can give me an exemple for help me ?

Thanks

Upvotes: 0

Views: 1216

Answers (2)

PermGenError
PermGenError

Reputation: 46408

you can use <ui:repeat> to achieve that.

 <p:dataTable var="tab" value="#{list.l1}">
 <p:column>
       <ui:repeat value="#{accesslistin backing bean}" var="variable">
                      <h:outputText value="#{variable.watever}"/>
        </ui:repeat>
  </p:column>
 </p:dataTable>

Upvotes: 0

tomi
tomi

Reputation: 716

You can do this using ui:repeat, for example:

<p:column>
    <ui:repeat value="#{listElement.someList}" var="listElem">
        <h:outputText value="#{listElem} " />
    </ui:repeat>
</p:column>

Upvotes: 2

Related Questions