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

IndicatingAjaxFallbackLink does not remove indicator if the link itself is added via ajax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0-beta2
    • 1.3.0-beta4
    • wicket
    • None
    • Windows XP, JBoss-4.2.0GA, JDK 1.5

    Description

      Any link extending IndicatingAjaxFallbackLink that adds itself to the AjaxRequestTarget via:

      @Override
      public void onClick(AjaxRequestTarget target) {
      //do stuff
      if (target != null)

      { target.addComponent(this); }

      else

      { setResponsePage(getPage()); }

      }

      This results in adding the indicator-span to the page every time that link is clicked, if clicked 5 times there are 5 indicator-spans visible. Reloading the page or target.addComponent(containerThatContainsTheLink) removes the indicators.

      Attachments

        1. WICKET-722.patch
          0.8 kB
          Gerolf Seitz

        Activity

          People

            knopp Matej Knopp
            mvoigt Martin Voigt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: