Note that there are some explanatory texts on larger screens.

plurals
  1. POshowing different items of a list in dataTable
    primarykey
    data
    text
    <p>I would like to show different items of a list in my dataTable </p> <p>I tried <code>ui:repeat</code> but it's seems not working </p> <p>I have an object Demande(Classe demande) it has a list of Choix and I want to show for all demandes the choice and the periode(Classe Periode) of each choice(classe Choix)</p> <pre><code> &lt;p:dataTable id="estivage" var="it" emptyMessage="Aucune demande !" value="#{demandeController.allDemandes}" paginator="false" style="width: 800px" rows="10" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="5,10,15"&gt; &lt;f:facet name="header"&gt; Liste des Demandes pour la periode d'éstivage &lt;/f:facet&gt; &lt;p:column style="text-align:center" sortBy="#{it.utilisateur.nom}"&gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="Adherent" /&gt; &lt;/f:facet&gt; &lt;h:outputText value="#{it.utilisateur.nom}" /&gt; &lt;h:outputText value=" " /&gt; &lt;h:outputText value="#{it.utilisateur.prenom}" /&gt; &lt;/p:column&gt; &lt;p:column style="text-align:center" sortBy="#{it.dateDemande}"&gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="Date de la demande" /&gt; &lt;/f:facet&gt; &lt;h:outputText value="#{it.dateDemande}"&gt; &lt;f:convertDateTime pattern="dd/MM/yyyy 'à' HH:mm:ss" /&gt; &lt;/h:outputText&gt; &lt;/p:column&gt; &lt;ui:repeat var="item" value="#{it.listChoix}"&gt; &lt;p:column style="text-align:center"&gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="chalet " /&gt; &lt;/f:facet&gt; &lt;h:outputText value="#{item.chaletChoisi}" /&gt; &lt;/p:column&gt; &lt;p:column style="text-align:center"&gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="periode " /&gt; &lt;/f:facet&gt; &lt;h:outputText value="#{item.periode.libelle}" /&gt; &lt;/p:column&gt; &lt;/ui:repeat&gt; &lt;p:column style="text-align:center"&gt; &lt;f:facet name="header"&gt; &lt;h:outputText value="Mode paiement" /&gt; &lt;/f:facet&gt; &lt;h:outputText value="#{it.modePaiement}"&gt; &lt;/h:outputText&gt; &lt;/p:column&gt; &lt;/p:dataTable&gt; </code></pre> <p>any help please</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload