Hello,

I have two AjaxLinks inside a panel which is inside an IColumn of a
DataTable. The table is refreshed by a TextField which implements an
OnChangeAjaxBehavior. This behaviour manipulates the data provider and adds
the table to the target.

When text is entered to the text field the table is filtered as expected.
But the response body of the Ajax post request delivers event registrations
of the AjaxLinks rendered in the iteration before.

E.g.: IBehaviourlisteners for AjaxLink IDs id54 and id55 are delivered. But
the links have the IDs id56 and id57.

Example:

<div>
    <a id="id56" href="javascript:;">Edit</a>
    <a id="id57" href="javascript:;">Delete</a>
</div>

...
<evaluate><![CDATA[(function(){Wicket.Ajax.ajax({"c":"id54","u":"./SiglumIndexPage?4-1.IBehaviorListener.0-container-fragment-siglumDataTable-body-rows-26-cells-3-cell-editLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"id55","u":"./SiglumIndexPage?4-1.IBehaviorListener.0-container-fragment-siglumDataTable-body-rows-26-cells-3-cell-deleteLink","e":"click"});})();]]></evaluate></ajax-response>

If I unfocus the text field I get a response with the correct event
registrations.

...
<evaluate><![CDATA[(function(){Wicket.Ajax.ajax({"c":"id56","u":"./SiglumIndexPage?4-1.IBehaviorListener.0-container-fragment-siglumDataTable-body-rows-27-cells-3-cell-editLink","e":"click"});})();(function(){Wicket.Ajax.ajax({"c":"id57","u":"./SiglumIndexPage?4-1.IBehaviorListener.0-container-fragment-siglumDataTable-body-rows-27-cells-3-cell-deleteLink","e":"click"});})();]]></evaluate></ajax-response>

Has anyone seen similar problems? Is it possible enforce an event
registration refresh for AjaxLinks?

Just ask for code examples if needed.

Regards,
Marcus

Reply via email to