I want to have the possibility to add a listener at application Level like in this pseudo code
Server side getGlobalAjaxBehaviors().add("myid",new GlobalAjaxBehavior(){ public void respond(GlobalRequest request){ // here the Event is received // request.getArguments(); // request.replace(...) } } Client side Wicket.Ajax.get({"id","somearguments"}); This would allow me to send ajax request from any applications rendered at the Same page but which aren't able to access the wicket component structure. But within the event I would like to add and replace components based on the given args. Maybe application is Not the right place - Page would also be ok by adding the page class to the listener instead an id and the page class itself could implement an Interface for handling the event. kind regards Tobias > Am 09.09.2014 um 11:06 schrieb Martin Grigorov <mgrigo...@apache.org>: > > What exactly you want to do ? > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > > On Tue, Sep 9, 2014 at 11:58 AM, Tobias Soloschenko < > tobiassolosche...@googlemail.com> wrote: > >> Hi all, >> >> is there a way to register a global ajax event handler within Wicket? For >> normal there is the AbstractDefaultAjaxBehavior which is added to a >> component. And then the CallbackScript can be obtained and used within a >> OnDomReadyHeaderItem for example. >> >> Is there a way to do this on application level so that Im able to get the >> CallbackScript from the instantiated Application? >> >> kind regards >> >> Tobias >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org