Objects and List

UI Components for JSF
Post Reply
smintprime
Posts: 3
Joined: 20 Oct 2014, 10:04

20 Oct 2014, 10:15

Hi, I use Primefaces 5.1,jsf 2.2, Tomcat 7 and I have a question:

I have a list of object , "ObjectA", with a Strings and Objects ("ObjectB,ObjectC") list properties inside, actually y try to show properties :

Code: Select all

<p:accordionPanel id="p:accordionPanel" dynamic="true" cache="true">
			    
				        <p:tab title="A" >
				            <h:panelGrid columns="6" cellpadding="10" id="gridofObjectA">
								<p:dataTable id="data" value="#{Bean.ObjectA.ObjectB}">(ObjectB is a list of objects inside ObjectA)
                                                                     <p:column headerText="A" id="columnA" columnIndexVar="i">							    
								        <h:outputText id="ObjectBText" value="#{objectb[i].text}" />
								    </p:column>etc....
                                                                </p:dataTable>
                                            <h:panelGrid>
                                        </p:tab>
</p:accordionPane>
What are I doing wrong , i need show objectb properties inside a objectAlist

Thanks for advance.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests