javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-83

DataTable rendering of columnClasses doesn't work in the header

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1_01
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform:

    • Issuezilla Id:
      83

      Description

      DataTable rendering of columnClasses doesn't work in the header. This means
      there is no way to set a per-cell CSS property (such as the background color) in
      the header of the table.

      Some more details - the full thread is here:
      http://swforum.sun.com/jive/thread.jspa?messageID=180281 :

      "There's a bug in the JSF Data Table which causes the columnClasses property to
      not apply to the cells in the header section (under <thead>). (If you look at
      the rendered html page, you can see each <td> is assigned an item from the
      columnClasses list, but this is not the case for the <th>'s.). Or alternatively,
      the JSF data table authors did this deliberately, but failed to provide a style
      list property for the header; the "headerClass" property is not an iterator like
      rowClasses/columnClasses.

        Activity

        Hide
        jayashri added a comment -

        I think Roger has already fixed this issue.

        Show
        jayashri added a comment - I think Roger has already fixed this issue.
        Hide
        rogerk added a comment -

        The approach taken and accepted by the EG was:

        <h:dataTable headerClass="tableheader" ....
        <h:column headerClass="column-header" footerClass="column-footer".....

        By default, the "headerClass"/"footerClass" at the "dataTable" level would
        also be used at the column level (as it is done today), but specifying
        "headerClass"/footerClass" at the column level overrides it.

        So, the above would be rendered as:

        <table>
        <thead>
        <tr><th class="table-header" .....
        <tr>
        <th class="column-header" ....

        Show
        rogerk added a comment - The approach taken and accepted by the EG was: <h:dataTable headerClass="tableheader" .... <h:column headerClass="column-header" footerClass="column-footer"..... By default, the "headerClass"/"footerClass" at the "dataTable" level would also be used at the column level (as it is done today), but specifying "headerClass"/footerClass" at the column level overrides it. So, the above would be rendered as: <table> <thead> <tr><th class="table-header" ..... <tr> <th class="column-header" ....
        Hide
        Manfred Riem added a comment -

        Closing issue out

        Show
        Manfred Riem added a comment - Closing issue out

          People

          • Assignee:
            rogerk
            Reporter:
            tnorbye
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: