sort by ne fonctionne pas avec des subtables
Bonjour,
J'ai une petite question, j'aimerai rajouter des tri de colonnes sur un datatable contenant des subtables.
Mais ça ne fonctionne pas.
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 32 33 34
|
<rich:dataTable id="operationsList" value="" var="" rows="8" style="width:900px;text-align:center;">
<f:facet name="header">
<rich:columnGroup>
<rich:column>
<h:outputText value="${msg.transactionCommande_idExterne}" /><br/>
<h:outputText value="" /><br/>
</rich:column>
<rich:column >
<h:outputText value="${msg.transactionCommande_clientLocal}" /><br/>
<h:outputText value="" /><br/>
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:subTable var="detailsCommandeBean" value="#{operationsList}"
rendered="#{detailsExpandableDataTableBean.visibleDetailCommandeOperation}">
<rich:column width="20px">
<h:outputText value="#{detailsCommandeBean.numSequence}" />
</rich:column>
<rich:column width="130px">
<h:outputText value="#{detailsCommandeBean.clientLocal}" /><br/>
<h:outputText value="#{detailsCommandeBean.glnClientLocal}" /><br/>
</rich:column>
<rich:subTable var="listeArticle" value="#{detailsCommandeBean.listeArticles}"
rendered="#{detailsCommandeBean.visible}">
<rich:column>
<h:outputText value="#{listeArticle.article}"/>
</rich:column>
<rich:column>
<h:outputText value="#{listeArticle.valeur} #{transactionCommande.transaction.devise.libelle}"/>
</rich:column>
</rich:subTable>
</rich:subTable>
</rich:dataTable> |
J'ai rajouté un sortby sur la première colonne, mais elle n'apparaît pas. J'ai l'impression que ça ne fonctionne pas. Avez-vous une idée de la manière dont je dois m'y prendre pour réaliser le sortby avec des subtables ?
merci