Regrouper des lignes dans un t:dataTable
	
	
		Bonjour,
Je souhaite regrouper les lignes d'un tableau t:dataTable afin de pouvoir afficher des sous totaux.
	Code:
	
| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 
 |  
<t:dataTable var="cout" value="#{coutBean.couts}">
    <t:column>
        <f:facet name="header">
            <h:outputText value="Catégorie" />
        </f:facet>
	<t:outputText value="#{cout.categorieCoutLabel}"></t:outputText>
    </t:column>
    <t:column>
        <f:facet name="header">
            <h:outputText value="Nature" />
        </f:facet>
	<t:outputText value="#{cout.nature}"></t:outputText>
    </t:column>
    <t:column>
	<f:facet name="header">
	    <h:outputText value="Montant" />
	</f:facet>
	<t:outputText value="#{cout.montant}"></t:outputText>
    </t:column>
</t:dataTable> | 
 Je voudrais regrouper les coûts par catégorie pour faire des sous totaux.
Pour afficher un truc du genre :
Catégorie    Nature    Montant
Cat1    Nat1    10€
Cat1    Nat2    10€
SousTotalCat1 20€
Cat2    Nat4    40€
Cat2    Nat5    50€
SousTotalCat1 90€
Avez vous une idée des tags à utiliser (Tomahawk) ou des attributs ?
J'ai pensé à faire des sous tableaux... mais est-ce possible et n'y a t'il pas une solution plus propre ?:koi: