You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Vladimir Zavada <za...@gmail.com> on 2009/04/17 10:30:46 UTC

AbstractAjaxTimerBehavior start

Hi,
is there a way to start AbstractAjaxTimerBehavior after onSubmit event 
of AjaxButton, which is on the same page?

Thx in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AbstractAjaxTimerBehavior start

Posted by Daniel Toffetti <dt...@yahoo.com.ar>.
Vladimir Zavada <zavadav <at> gmail.com> writes:
> 
> Thanks for reply.
> I am just newbie to wicket.
> I tried this solution but it did not work. Probably its because 
> AbstractAjaxTimerBehavior is not a component and I am not able to set 
> setOutputMarkupId to true.
> 
> Vlado
> 
> Tom Wollert  wrote / napísal(a):
> > Hi there,
> >
> > Couldn't you just add the AbstractAjaxTimerBehavior to the page/component
> > after you receive the ajax call from the onSubmit event and then update the
> > component using the ajax request target? (untested, but I don't see a reason
> > why it wouldn't work. could imagine that this solution might not be as
> > elegant as hoped)
> >
> > - Tom
> >

    You don't have to set setOutputMarkupId to true in
AbstractAjaxTimerBehavior, you just need to add it to the component that you
want activated on timer, for example your page.

hth,

Daniel



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AbstractAjaxTimerBehavior start

Posted by Vladimir Zavada <za...@gmail.com>.
Thanks for reply.
I am just newbie to wicket.
I tried this solution but it did not work. Probably its because 
AbstractAjaxTimerBehavior is not a component and I am not able to set 
setOutputMarkupId to true.

Vlado

Tom Wollert  wrote / napísal(a):
> Hi there,
>
> Couldn't you just add the AbstractAjaxTimerBehavior to the page/component
> after you receive the ajax call from the onSubmit event and then update the
> component using the ajax request target? (untested, but I don't see a reason
> why it wouldn't work. could imagine that this solution might not be as
> elegant as hoped)
>
> - Tom
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AbstractAjaxTimerBehavior start

Posted by Tom Wollert <to...@googlemail.com>.
Hi there,

Couldn't you just add the AbstractAjaxTimerBehavior to the page/component
after you receive the ajax call from the onSubmit event and then update the
component using the ajax request target? (untested, but I don't see a reason
why it wouldn't work. could imagine that this solution might not be as
elegant as hoped)

- Tom