Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3818

AbstractTree.updateTree() method not works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC4
    • 1.5-RC6
    • wicket
    • None
    • Win 7, FF

    Description

      If for a tree update we call AbstractTree.updateTree() method without parameters, the data in tree doesn't update. If we call AbstractTree.updateTree(AjaxRequestTarget target) method - the data updates correctly. The reason is in getting target in AbstractTree.updateTree() method. It's supposed that abstractRequestTarget is getRequestCycle().getActiveRequestHandler(), but actually abstractRequestTarget is getRequestCycle().getRequestHandlerScheduledAfterCurrent().
      May be instead of getRequestCycle().getActiveRequestHandler() we must call AbsractRequestTarget.get() in AbstractTree.updateTree() method to get the correct target?

      In quickstart project you'll see 3 trees, the first - updates with passed as parameter in onClick() target, the second - updates with target AbsractRequestTarget.get(), the third doesn't updates, because AbstractTree.updateTree() called.

      Attachments

        1. project.rar
          6 kB
          Mishelle Bonq

        Activity

          People

            jdonnerstag Juegen Donnerstag
            mishelle Mishelle Bonq
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: