I´m missing this too but I suggest you to write a special renderer (datatable) for that.

Just a fast thought, how about that one (nested columns):

<x:datatable ...>
  <h:column>
    <f:facet name="header">
      <h:outputText value="Super Column Header"/>
    </f:facet>
    <f:facet name="footer">
      <h:outputText value="Super Column Footer"/>
    </f:facet>
    <h:column>
      <f:facet name="header">
        <h:outputText value="Header1"/>
      </f:facet>
      <f:facet name="footer">
        <h:outputText value="Footer1"/>
      </f:facet>
      <h:outputText value="Content1"/>
    </h:column>
    <h:column>
      <f:facet name="header">
        <h:outputText value="Header2"/>
      </f:facet>
      <f:facet name="footer">
        <h:outputText value="Footer2"/>
      </f:facet>
      <h:outputText value="Content2"/>
    </h:column>
    <!-- allow content here ? If yes how can it be rendered? -->
  </h:column>
  <h:column>
    <f:facet name="header">
      <h:outputText value="Header"/>
    </f:facet>
    <f:facet name="footer">
      <h:outputText value="Footer"/>
    </f:facet>
    <h:outputText value="Content"/>
  </h:column>
  ...
</x:datatable>

will render like this:

|Super Column Header|Header |
|-------------------|       |
|Header1 |Header2   |       |
|--------|----------|-------|
|Content1|Content2  |Content|
|--------|----------|-------|
|Footer1 |Footer2   |Footer |
|-------------------|       |
|Super Column Footer|       |

I would like to do that but I haven´t the time right now.

Regards,

Mathias

Clément Maignien schrieb:
Hi,
I'm looking for a way to display headers of headers in a dataTable. Each column have its own header, but I want to put "super header" to group columns that display the same kind of informations. Is there a simple way to do that ? I tried it many ways but they are not good looking. Thx in advance Clément.
_________________________________________________

Clément Maignien [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

*                   E D */*I*/* C ** **///// */*GROUPE SYLIANCE*/

*               123, quai de Brazza - 33100 Bordeaux*

*            Tél : 05 57 80 93 00 - Fax : 05 57 80 93 09*

*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯*

Reply via email to