Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-467

Support for partial rendering for the (old) tree

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.11
    • Fix Version/s: 1.0.12
    • Component/s: Themes
    • Labels:
      None
    • Environment:
      All

      Description

      Added support for partial rendering and onclick for the (old) tree. And it's now possible to use multi node selection and
      the treeNodeCommand together. Source code is attached.

      Example:

      <tc:tree id="sendungenTree"
      value="#

      {sendungenController.resultTree}

      "
      state="#

      {sendungenController.treeState}

      "
      idReference="userObject.id"
      nameReference="userObject.name"
      showIcons="true"
      showJunctions="true"
      showRootJunction="false"
      showRoot="false"
      selectable="multiLeafOnly"
      mutable="false">
      <f:facet name="treeNodeCommand">
      <tc:command action="#

      {sendungenController.treeAction}

      ">
      <tc:attribute name="renderedPartially" value=":sendungPage:resultView:panel"/>
      </tc:command>
      </f:facet>
      </tc:tree>

      or

      <f:facet name="treeNodeCommand">
      <tc:command onclick="doSomething()"/>
      </f:facet>

      1. treeNodeCommand2.diff
        2 kB
        Helmut Swaczinna
      2. treeNodeCommand.diff
        5 kB
        Helmut Swaczinna

        Issue Links

          Activity

          Hide
          bommel Bernd Bohmann added a comment -
          Show
          bommel Bernd Bohmann added a comment - See TOBAGO-497
          Hide
          swaczinna Helmut Swaczinna added a comment -

          Patch for TreeListboxRenderer

          Show
          swaczinna Helmut Swaczinna added a comment - Patch for TreeListboxRenderer
          Hide
          volkerweber Volker Weber added a comment -

          these commits breaks the treeListbox component

          Show
          volkerweber Volker Weber added a comment - these commits breaks the treeListbox component
          Hide
          lofwyr Udo Schnurpfeil added a comment -

          I've applied the patch, and it seems to work.
          I've added the tree-id as prefix for the new variable, to support more than one tree on one page.

          Show
          lofwyr Udo Schnurpfeil added a comment - I've applied the patch, and it seems to work. I've added the tree-id as prefix for the new variable, to support more than one tree on one page.
          Hide
          swaczinna Helmut Swaczinna added a comment -

          Modified renderer and js for treeOld

          Show
          swaczinna Helmut Swaczinna added a comment - Modified renderer and js for treeOld

            People

            • Assignee:
              bommel Bernd Bohmann
              Reporter:
              swaczinna Helmut Swaczinna
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development