Hi,

Please ask your questions in the users@ mailing list.

The Ajax response should contain something similar that will register the
event listener for the replacement component.
So your new component should be Ajax aware.
This JS code is rendered by AjaxEventBehavior#renderHead() method for both
Ajax and normal requests.

Martin Grigorov
Wicket Training and Consulting


On Mon, Jan 20, 2014 at 2:16 PM, yoav Stern <[email protected]> wrote:

> My scenario: on an ajax event I replace a webmarkupContainer with one of my
> components which have some wicket IBehaviorListener.
>
> The problem is that this replace happen due to ajax request, and the
> behavior get listed on dom ready:
>
> Wicket.Event.add(window, "domready", function(event) {
> Wicket.Ajax.get({'u': 'some/url', 'c': 'linkId', 'e':'click'}));
>   // ... more event registrations and onDomReady scripts }
>
> I'm assuming that, being generated in the this event registration code
> happens for all components that are added explicitly but not for any
> components that are added dynamically by me.
>
> How can I call the new container with the ajax behaviors or change the
> current implementation so the wicket ajax behaviors would be called?
>
> Thanks in advance.
>

Reply via email to