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

contrib:TableColumns can only have center aligned column headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.1, 4.0, 4.1
    • 4.0.1
    • Contrib
    • None

    Description

      Table columns cannot in any way be altered to change alignment. The default alignment is centered, due to this code in the render component ("SimpleTableColumnComponent"):

      <table border=0 cellspacing=0 cellpadding=0 align="center">

      Because of this, you can't use CSS to modify the alignment. I have to manually change the code in the Tapestry source and rebuild to allow anything other than center-aligned columns.

      Some (on the mailing lists) have suggested using a different renderer, but that doesn't appear possible without writing a lot of custom renderer code (basically, replace the entire SimpleTableXX component family just to replace one part of it). All to replace something that should be CSS-controllable anyway.

      Attachments

        Activity

          People

            Unassigned Unassigned
            drewmca Drew McAuliffe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: