Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1538

Tree does not work if setPath() is used in custom tree configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an issue
    • Icon: Major Major
    • None
    • None
    • admininterface
    • None
    • Firefox 2
      Internet Explorer 6

      If specifyiing a custom tree config with a setPath(), the tree does not function properly. Trying to expand subitems causes weird behaviour...

      Steps to reproduce (thanks to Gregory):

      1) Create a new tree configuration class:
      public class MyTreeConfiguration extends WebsiteTreeConfiguration {
      public void prepareTree(Tree tree, boolean browseMode, HttpServletRequest request)

      { super.prepareTree(tree, browseMode, request); tree.setPath("/foobar"); }

      }
      Deploy that class in magnolia.

      2) Reference the configuration in a new tree definition:
      .../my-new-tree/configurationClass : info.magnolia.test.
      MyTreeConfiguration

      3) Finally, setup my dialog's link control with a "tree" property set to the newly created Tree ("my-new-tree")

        Acceptance criteria

              pbaerfuss Philipp Bärfuss
              zambak zam6ak
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: