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

AjaxLazyLoadPanel needs a method to add components to the AjaxRequestTarget when the component is rendered

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.3.0
    • 6.5.0
    • wicket-extensions
    • None

    Description

      A component may need to update other components on a page when lazy load completes in same RequestCycle. For example, a component takes 5 seconds to load and then a feedback panel on the page needs to be updated summarizing the state of the lazily loaded component.

      It would be intuitive to use if there was a method like:

      public void onComponentLoaded(AjaxRequestTarget)

      It may be possible to override getLoadingComponent(String markupId) get to the AjaxRequestTarget but I was not able to do this for my test. It may also be possible to override handleCallbackScript(IHeaderResponse response, String callbackScript) but that would require another round trip to the server.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            pkc Paul C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: