salut a tous j ai un petit problème avec une datatable:
je veut afficher les numéro des ligne sans ajouter aucune nouvelle propriété a mon ENTITY :
j ai essayer d'utiliser rowIndexVar mais ca n affiche aucun resultat
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 <h:dataTable width="100%" value="#{bean.liste}" var="variable" rowCountVar="myRowCount" rowIndexVar="myRowIndex" styleClass="dataTable" columnClasses="dataTable_column_center" headerClass="dataTable_header" footerClass="dataTable_footer"> <h:column> <h:outputText value="#{myRowCount}" style="font-weight: bold"></h:outputText> <h:outputText value="#{myRowIndex}" style="font-weight: bold"></h:outputText> </h:column> <h:column> <f:facet name="header"> <h:panelGrid columns="1" width="30"> <h:outputText value="" /> </h:panelGrid>............................................................................... ............................................................................................. </f:facet>
merci![]()
Partager