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

OnEventHeaderItem can't be applied via AJAX

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.9.0, 1.5.11, 7.0.0-M1
    • Component/s: None
    • Labels:
      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. WICKET-5234.patch
          1 kB
          Andrea Del Bene
        2. OnEventAjax.zip
          32 kB
          Andrea Del Bene
        3. EventScript.patch
          2 kB
          Andrea Del Bene

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: