Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5 M2
    • Component/s: extras
    • Labels:
      None
    • Environment:
      click 1.2

      Description

      Expand or collapse the tree reset the checked items.
      Checked or uncheck an item should also check or uncheck the childs.

        Activity

        Hide
        sabob Bob Schellink added a comment -

        Hi

        Just to avoid confusion, I assume the first item here means that using the CheckboxTree, one can select a few checkboxes and then click to expand or collapse a node. Because the checkboxes are inside of a html form, their values needs to be submitted (by clicking on a submit button) before they can be persisted on the server side. The same behavior will be seen by filling in a html form and without hitting submit, click on for example a menu item. The form data was not submitted (even tho the form was filled in) and so is not sent to the server. Is this what item1 describes above?

        To improve this I guess one has to use javascript. I am busy implementing Cookie support for the tree control which should fix this issue nicely, since the cookie will track exactly which nodes are expanded and collapsed even if the submit button is not used. Actually the form is not even needed then since both expand/collapse and select/deselected nodes are tracked by cookies...

        Let me know if this if this will take care of issue 1.

        With regards to item two, should the children be selected recursively or only the current node's children? Perhaps this should be tunable?

        Show
        sabob Bob Schellink added a comment - Hi Just to avoid confusion, I assume the first item here means that using the CheckboxTree, one can select a few checkboxes and then click to expand or collapse a node. Because the checkboxes are inside of a html form, their values needs to be submitted (by clicking on a submit button) before they can be persisted on the server side. The same behavior will be seen by filling in a html form and without hitting submit, click on for example a menu item. The form data was not submitted (even tho the form was filled in) and so is not sent to the server. Is this what item1 describes above? To improve this I guess one has to use javascript. I am busy implementing Cookie support for the tree control which should fix this issue nicely, since the cookie will track exactly which nodes are expanded and collapsed even if the submit button is not used. Actually the form is not even needed then since both expand/collapse and select/deselected nodes are tracked by cookies... Let me know if this if this will take care of issue 1. With regards to item two, should the children be selected recursively or only the current node's children? Perhaps this should be tunable?
        Hide
        sabob Bob Schellink added a comment -

        Will be available in Click 1.5-M2

        Show
        sabob Bob Schellink added a comment - Will be available in Click 1.5-M2

          People

          • Assignee:
            sabob Bob Schellink
            Reporter:
            shiru zhengshiru
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development