utiliser <rich:datatable> pour créer un tableau a 2 dimensions
Bonjour tout le monde;
je débute avec JSF et je veux créer un tableau a 2 dimension c'est a dire une ligne fixe et une colonne fixe, j'ai déja crée un tableau avec une ligne fixe (header) mais j'ai pas arrivé a faire la même chose pour la colonne.
Voici le 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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<rich:dataTable cellpadding="" cellspacing="" border="1"
var="list" value="" id="table"
style="text-align:center;" rows="5" width="100%">
<f:facet name="header">
<rich:columnGroup>
<rich:column colspan="5">
<h:outputText
value="Les éléments de paie:" />
</rich:column>
<rich:column breakBefore="true">
<f:facet name="header">
<h:outputText value="Rubrique" />
</f:facet>
<h:outputText value="Rubrique" />
</rich:column>
<rich:column >
<f:facet name="header">
<h:outputText styleClass="headerText" value="Base" />
</f:facet>
<h:outputText value="Base" />
</rich:column>
<rich:column>
<h:outputText styleClass="headerText" value="Taux" />
</rich:column>
<rich:column>
<h:outputText styleClass="headerText" value="Gains" />
</rich:column>
<rich:column>
<h:outputText styleClass="headerText" value="Retenus" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:column>
<h:outputText styleClass="headerText" value="Gains" />
</rich:column>
<rich:column>
<h:outputText styleClass="headerText" value="Gains" />
</rich:column>
<rich:column filterEvent="onkeyup" >
<h:outputText value="" />
</rich:column>
<rich:column>
<h:outputText value="" />
</rich:column>
</rich:dataTable> |
Merci d'avance.
Bonne journée