Re: Global Ajax Event Handler

2014-09-10 Thread Tobias Soloschenko
t the problem you're > > trying to solve can be solved much, much easier! > > > > > > Anyway .. wish you luck ;) > > > > > > -Original Message- > > > From: Tobias Soloschenko [mailto:tobiassolosche...@googlemail.com] >

Re: Global Ajax Event Handler

2014-09-10 Thread Martin Grigorov
> trying to solve can be solved much, much easier! > > > > Anyway .. wish you luck ;) > > > > -Original Message- > > From: Tobias Soloschenko [mailto:tobiassolosche...@googlemail.com] > > Sent: Tuesday, September 09, 2014 2:58 PM > > To: u

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
assolosche...@googlemail.com] > Sent: Tuesday, September 09, 2014 2:58 PM > To: users@wicket.apache.org > Subject: Re: Global Ajax Event Handler > > Thats the point. It is not used within a Component / Behavior - so I cant use > getPage() ... > >> Am 09.09.2014

RE: Global Ajax Event Handler

2014-09-09 Thread Richter, Marvin
t: Tuesday, September 09, 2014 2:58 PM To: users@wicket.apache.org Subject: Re: Global Ajax Event Handler Thats the point. It is not used within a Component / Behavior - so I cant use getPage() ... > Am 09.09.2014 um 14:50 schrieb Martin Grigorov : > > The UrlGenerator class is used somew

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
t;>>> with >>>>>>>> the >>>>>>>>>> last page id not from within a component (this would be simple >>>>>>>>> getPage())? >>>>>>>>> >>>>>>>>> I didn't get thi

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
gt;>>>>> > >>>>>>>> 2014-09-09 11:51 GMT+02:00 Martin Grigorov < > >> mgrigo...@apache.org > >>>> : > >>>>>>>> > >>>>>>>>> I've re-read the message and I think I got it. >

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
u really need is a mounted resource >>>>>>>>> (WebApplication#mountResource(someResourceReference)) >>>>>>>>> To get a url to it use: theUrl = >>> requestCycle.urlFor(sameResRef, >>>>>>>>> parametersWith

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
>>>>>>> (WebApplication#mountResource(someResourceReference)) >>>>>>>>> To get a url to it use: theUrl = >>> requestCycle.urlFor(sameResRef, >>>>>>>>> parametersWithPageId) >>>>>>>>> Wicket.Ajax.ge

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
t; > > > > target = webApplication.newAjaxRequestTarget(page) > > > > > > > > requestCycle.scheduleRequestHandlerAfterCurrent(target); > > > > > > > > page.send(page, Broadcast.BREADTH, new SomeEvent(target)) > > > > > > >

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
; to > > > add > > > > > the > > > > > > > component when SomeEvent is broadcasted > > > > > > > > > > > > > > Martin Grigorov > > > > > > > Wicket Training and Consulting > > > >

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
> > > Martin Grigorov > > > > > > Wicket Training and Consulting > > > > > > https://twitter.com/mtgrigorov > > > > > > > > > > > > > > > > > > On Tue, Sep 9, 2014 at 12:40 PM, Richter, Marvin < > > > > > &g

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
; > > > > > > > What you are looking for is the Wicket Event mechanism. > > > > > > > > > > > > This allows you to send a broadcast to a specified Component > (e.g. > > > the > > > > > > current page) and a payloa

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
and a payload (e.g. your custom event type which > > contains > > > > > information). > > > > > > > > > > In the Components which should react on the event you override the > > > method > > > > > onEvent, check if the eve

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
In the Components which should react on the event you override the > > method > > > > onEvent, check if the event is of your type and if so, do with the > > event > > > > payload whatever you want. > > > > > > > > Check out > > > > > &g

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
> > Check out > > > > > > http://www.wicket-library.com/wicket-examples/events/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?1&SourcesPage_class=org.apache.wicket.examples.events.DecoupledAjaxUpdatePage > > > for a good example. > &g

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
pdatePage > > for a good example. > > > > Best, > > Marvin > > > > -Original Message- > > From: Tobias Soloschenko [mailto:tobiassolosche...@googlemail.com] > > Sent: Tuesday, September 09, 2014 11:31 AM > > To: users@wicket.apache.org >

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
.apache.wicket.examples.events.DecoupledAjaxUpdatePage >> for a good example. >> >> Best, >> Marvin >> >> -Original Message- >> From: Tobias Soloschenko [mailto:tobiassolosche...@googlemail.com] >> Sent: Tuesday, September 09, 2014 11:31 AM >>

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
> Marvin > > -Original Message- > From: Tobias Soloschenko [mailto:tobiassolosche...@googlemail.com] > Sent: Tuesday, September 09, 2014 11:31 AM > To: users@wicket.apache.org > Subject: Re: Global Ajax Event Handler > > Hi, > > thanks for the answe

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
I only wrote some pseudo code to show what I want to do. In simple words: I want to write javascript code that invokes a method on the server side. The method on Server side is going to refresh components. Everything should work without Rendering the javascript code within a wicket page / compon

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
che.wicket.examples.events.DecoupledAjaxUpdatePage > for a good example. > > Best, > Marvin > > -Original Message- > From: Tobias Soloschenko [mailto:tobiassolosche...@googlemail.com] > Sent: Tuesday, September 09, 2014 11:31 AM > To: users@wicket.apache.org > Sub

RE: Global Ajax Event Handler

2014-09-09 Thread Richter, Marvin
lass=org.apache.wicket.examples.events.DecoupledAjaxUpdatePage for a good example. Best, Marvin -Original Message- From: Tobias Soloschenko [mailto:tobiassolosche...@googlemail.com] Sent: Tuesday, September 09, 2014 11:31 AM To: users@wicket.apache.org Subject: Re: Global Ajax Event Handler Hi, thanks for the answer, but this is only a cl

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
I am still confused :-) You used class names which are not available in Wicket 6.17.0 so I cannot map them to any functionality that is possible with "local" behavior. My guess is that you ask about org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() You can register custom l

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
Hi, thanks for the answer, but this is only a client side event hook not for processing a request to the Server. I added a pseudo code to the question of martin who asked me what I exactly want to do. Thanks anyway for the fast answer! kind regards, Tobias > Am 09.09.2014 um 11:06 schrieb T

Re: Global Ajax Event Handler

2014-09-09 Thread Tobias Soloschenko
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(..

Re: Global Ajax Event Handler

2014-09-09 Thread Tom Götz
See https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax, section "Global Ajax call listeners“. Cheers, -Tom On 09.09.2014, at 10:58, Tobias Soloschenko wrote: > Hi all, > > is there a way to register a global ajax event handler within Wicket? For > normal there is the Abstra

Re: Global Ajax Event Handler

2014-09-09 Thread Martin Grigorov
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 > no