Wicket
  1. Wicket
  2. WICKET-5234

OnEventHeaderItem can't be applied via AJAX

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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).

      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

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development