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

AbstractAjaxTimerBehavior throws ComponentNotFoundException when its component is replaced in PageMap.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.0.0-beta2
    • 6.0.0
    • wicket
    • None
    • Windows 7 with Jetty

    Description

      If a component with an AbstractAjaxTimerBehavior (or AjaxSelfUpdatingTimerBehavior) or any of its parents are replaced in the PageMap with another component, the next time behavior fires, you get a ComponentNotFoundException because the component with the attached behavior is no longer there.

      Not sure what js magic made this work in previous versions of wicket, but it wasn't an issue in 1.4. Not sure about 1.5 as we are upgrading from 1.4 to 6.0.

      Attachments

        1. timer-quickstart.zip
          25 kB
          Steve Lowery
        2. ASF.LICENSE.NOT.GRANTED--Wicket 1.5 Ajax Debug Window.jpg
          161 kB
          Steve Lowery
        3. timer15.war
          1.85 MB
          Steve Lowery
        4. timer6.war
          2.03 MB
          Steve Lowery

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            slowery23 Steve Lowery
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: