Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-958

Table column headers with a custom render block cannot be sorted

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.1.2
    • Component/s: Contrib
    • Labels:
      None

      Description

      With contrib:Table, a custom Block can be used to render a table column header (in my case, I'd like to render an Image in the header instead of the column name). However, the link in the header to sort the column is not rendered anymore when a custom block is used for the column header. This makes the column effectively unsortable, which I would not expect to be desired behavior...

      I guess this can simply be fixed in SimpleTableColumnComponent by rendering the supplied custom Block inside a copy of the "linkColumn" component, so clicking somewhere on content in the custom supplied block (in my case: an image) also sorts the column.

        Attachments

          Activity

            People

            • Assignee:
              andyhot Andreas Andreou
              Reporter:
              rhythmic Mathijs den Burger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: