< af:column > tags can be nested to produce groups of
columns. The header of a column group spans across all the columns it contains.
The following example creates a column group that has the header "Name" and
contains two sub columns with headers "First" and "Last":
<af:table var="row" value="#{myBean.employees}">
<af:column>
<f:facet name="header">
<af:outputText value="Name"/>
</f:facet>
<af:column>
<f:facet name="header">
<af:outputText value="First"/>
</f:facet>
<af:outputText value="#{row.firstname}"/>
</af:column>
<af:column>
<f:facet name="header">
<af:outputText value="Last"/>
</f:facet>
af:outputText value="#{row.lastname}"/>
</af:column>
</af:column>
</af:table>
From: Fernando Madruga Pinheiro [mailto:[EMAIL PROTECTED]
Sent: Monday, February 20, 2006 9:28 PM
To: MyFaces Discussion
Subject: Grouping headers
I'm trying to create a grouped header, but no success.
I've searching a lot, and found this: http://www.mail-archive.com/[email protected]/msg07881.html
But this didn't work.
What I need is to group some columns, like
| A | B |
+----+----+----+----+
Rows | A1 | A2 | B1 | B2 |
------+----+----+----+----+
Row 1 | 1 | 2 | 3 | 2 |
Row 2 | 1 | 1 | 1 | 1 |
Row 3 | 2 | 2 | 2 | 0 |
Is it possible?
--
| Fernando Madruga Pinheiro |
| Analista de Sistemas |
| WMix Distribuidora Ltda |
| Fone/Fax: +55 (48) 3035-9734 |
Esta mensagem foi enviada pela Wmix Distribuidora Ltda, para uso exclusivo do destinatário, podendo conter informações confidenciais. Se for recebida por terceiro que não o destinatário, deve ser apagada imediatamente do seu computador e a Wmix Distribuidora Ltda notificada ([EMAIL PROTECTED]). As informações aqui prestadas não podem ser distribuídas ou reproduzidas sem a expressa autorização da Wmix Distribuidora Ltda.

