Re: Fwd: AjaxButton does not get register to the wicket events , after it rendered by ajax request

2014-01-21 Thread Sven Meier
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. That assumption is wrong. Wicket will handle all event registration code automagically. Updating a parent con

Fwd: AjaxButton does not get register to the wicket events , after it rendered by ajax request

2014-01-21 Thread Yoav Stern
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 gets listed on don ready: Wicket.Event.add(window, "domready", function(event) { Wicket.Aj