Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-611

Move the defaulting of the focusRowKey attribute for the TreeTable component to the renderer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-incubating-core
    • 1.0.0-incubating-core
    • None
    • None
    • All

    Description

      The Trinidad TreeTable is limited to a single root node. The root node that is displayed by the TreeTable is indicated by the focusRowKey attribute of TreeTable. When no focusRowKey attribute is specified, TreeTable defaults the focusRowKey to the first node in the tree model. This defaulting of the focusRowKey attribute is done in a package scoped method (__init()) of the UIXTreeTable class. Since there is no hook for subclasses of UIXTreeTable to override the defaulting of the focusRowKey attribute, the subclasses are also limited to a single root node (if they use the same focusRowKey logic to display the root node.)

      The proposal is to move the defaulting of the focusRowKey attribute out of the UIXTreeTable component and into the renderer. This allows subclasses of UIXTreeTable to handle a null focusRowKey and display multiple root nodes.

      This patch includes this change. Also currently both Tree and TreeTable initially expand the focusRowKey node. This initial expansion was also being done in the component. This patch moves the initial expansion of the focusRowKey node into the renderer.

      Attachments

        1. trunk.patch
          8 kB
          Kamran Kashanian

        Activity

          People

            Unassigned Unassigned
            kamrankashanian Kamran Kashanian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: