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]
>
> 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
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
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
t;>>> with
>>>>>>>> the
>>>>>>>>>> last page id not from within a component (this would be simple
>>>>>>>>> getPage())?
>>>>>>>>>
>>>>>>>>> I didn't get thi
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.
>
u really need is a mounted resource
>>>>>>>>> (WebApplication#mountResource(someResourceReference))
>>>>>>>>> To get a url to it use: theUrl =
>>> requestCycle.urlFor(sameResRef,
>>>>>>>>> parametersWith
>>>>>>> (WebApplication#mountResource(someResourceReference))
>>>>>>>>> To get a url to it use: theUrl =
>>> requestCycle.urlFor(sameResRef,
>>>>>>>>> parametersWithPageId)
>>>>>>>>> Wicket.Ajax.ge
t; > > > > target = webApplication.newAjaxRequestTarget(page)
> > > > > > > > requestCycle.scheduleRequestHandlerAfterCurrent(target);
> > > > > > > > page.send(page, Broadcast.BREADTH, new SomeEvent(target))
> > > > > > >
; to
> > > add
> > > > > the
> > > > > > > component when SomeEvent is broadcasted
> > > > > > >
> > > > > > > Martin Grigorov
> > > > > > > Wicket Training and Consulting
> > > >
> > > Martin Grigorov
> > > > > > Wicket Training and Consulting
> > > > > > https://twitter.com/mtgrigorov
> > > > > >
> > > > > >
> > > > > > On Tue, Sep 9, 2014 at 12:40 PM, Richter, Marvin <
> > > > > &g
; >
> > > > > > 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
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
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
> > 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
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
>
.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
>>
> 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
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
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
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
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
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
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(..
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
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
26 matches
Mail list logo