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. 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

        Andrea Del Bene created issue -
        Andrea Del Bene made changes -
        Field Original Value New Value
        Attachment WICKET-5234.patch [ 12587691 ]
        Andrea Del Bene made changes -
        Attachment OnEventAjax.zip [ 12587692 ]
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Fix Version/s 6.9.0 [ 12324357 ]
        Fix Version/s 7.0.0 [ 12322958 ]
        Resolution Fixed [ 1 ]
        Martin Grigorov made changes -
        Fix Version/s 1.5.11 [ 12324069 ]
        Andrea Del Bene made changes -
        Attachment EventScript.patch [ 12589263 ]
        Martin Grigorov made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Martin Grigorov made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          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