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

New attach->beforeRender refactor breaks ajax updating of list views

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.3.0-beta1
    • 1.3.0-beta2
    • wicket
    • None

    Description

      Because components are created in onBeforeRender in list views (it calls populateItem then), it is necessary for AJAX renderings now to call beforeRender on every component to be updated before proceeding with the render. Since the current code does not do this, you get a NPE when rendering happens since the item was never populated.

      It looks like AjaxRequestTarget.respondComponent should call before render on the component tree (similar to how it does in Page) just before it's about to render. But I'm unsure if this is the right place to make the change.

      Johan can you look at this since you were doing this refactor and probably know all the details?

      Attachments

        Activity

          People

            jcompagner Johan Compagner
            jonathan.locke Jonathan Locke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: