Probleme avec datatable imbriqués
Bonjour
Est-il possible d'imbriquer des datatable?
J'ai une liste d'etudiant avec dans chaque rangée :
nom|prenom|lien vers liste formations
Quand je clique sur le lien il doit m'afficher sous l'étudiant en question la liste de ses cours. En dessous la liste des etudiants continue.
Voici mon code :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| <h:form>
<h:dataTable var="part" value="#{participantController.listParticipant}"
styleClass="listCours" rowClasses="yellow,green">
<h:column>
<f:facet name="header">
<h:outputText value="#{msg.name}"></h:outputText>
</f:facet>
<h:panelGroup >
<h:outputText value="#{part.nom}"></h:outputText>
<h:dataTable var="planif" rendered="#{participantController.showPlanif}"
value="#{participantController.listFormationByPart}">
<h:outputText value="#{planif.cours.libelle}"></h:outputText>
</h:dataTable>
</h:panelGroup>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{msg.firstname}"></h:outputText>
</f:facet>
<h:outputText value="#{part.prenom}"></h:outputText>
</h:column>
<h:column>
<h:commandLink value="Formations"
actionListener="#{participantController.getListPlanifByParticipant}"
immediate="true"> </h:commandLink>
</h:column>
</h:dataTable>
</h:form> |
J'ai vérifié ma liste participantController.listFormationByPart est bien rempli, le booléen du rendered est à true et la liste devrait donc s'afficher, mais rien n'apparait.
D'où ma question, ce que j'essaie de faire est-il possible?