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

OnEventHeaderItem can't be applied via AJAX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 6.9.0, 1.5.11, 7.0.0-M1
    • None
    • None

    Description

      OnEventHeaderItem doesn't have effect if it is applied to a component refreshed via AJAX. In short, OnEventHeaderItem is applied before the component is refreshed via AJAX, hence the releated event handler is removed from the target component.
      We could modify JavaScript function Wicket.Ajax.Call.loadedCallback in order to apply header contributors after the component has been refreshed (see patch).

      Attachments

        1. EventScript.patch
          2 kB
          Andrea Del Bene
        2. OnEventAjax.zip
          32 kB
          Andrea Del Bene
        3. WICKET-5234.patch
          1 kB
          Andrea Del Bene

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            bitstorm Andrea Del Bene
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: