ICEfaces
  1. ICEfaces
  2. ICE-7438

JavaScript error when loading a scrollable ace:dataTable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-Beta2
    • Fix Version/s: 3.0.RC2, 3.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces 2.1.0 Beta2
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      An ace:dataTable uses header column grouping, the table has a total of 6 columns. The top most header group displays three columns with col spans of 3, 2 and 1. When the table is set to be scrollable, the columns are rendered out of alignment.

      In debugging the datatable.js in Chrome I see an error thrown:

      datatable.js.jsf:343 Uncaught TypeError: Cannot call method 'children' of undefined

      This error causes the column width calculations to exit and therefore the columns are rendered misaligned. The cause of the error seems to be usage of a header group column using a colspan=1
      1. resizeScrolling-error.JPG
        249 kB

        Activity

        Hide
        Nils Lundquist added a comment -

        Fixed in r26294
        Changed assumption that we will find the same number of single colspan header cols, to that the single colspans on the lowest rows are those corrolated with the table columns, and to truncate any unnecessary header columns from the beginning of the selection.

        Show
        Nils Lundquist added a comment - Fixed in r26294 Changed assumption that we will find the same number of single colspan header cols, to that the single colspans on the lowest rows are those corrolated with the table columns, and to truncate any unnecessary header columns from the beginning of the selection.
        Hide
        Ken Fyten added a comment -

        Add TLD doc explaining requirements for scrolling and columnGrouping.

        Show
        Ken Fyten added a comment - Add TLD doc explaining requirements for scrolling and columnGrouping.
        Hide
        Nils Lundquist added a comment -

        Note added to scrolling property TLD.

        Show
        Nils Lundquist added a comment - Note added to scrolling property TLD.

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: