You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by frasese <fr...@hotmail.com> on 2013/10/16 11:37:53 UTC
Ajax behaviour for multiple elements
Hi all,
there is a way to update the status of multiple elements with a single ajax
behaviour?
For example, if we have two different DropDownChoice elements, each one with
its own AjaxFormComponentUpdatingBehavior... when the "onchange" event is
triggered, one has his value updated, but not the other one.
So, my question is, how to update both? For example, update both with a
button, onclick..
Thanks in advance, and regards.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-behaviour-for-multiple-elements-tp4661835.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax behaviour for multiple elements
Posted by frasese <fr...@hotmail.com>.
Thanks for both answers!!!. I'm going to try.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-behaviour-for-multiple-elements-tp4661835p4661847.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax behaviour for multiple elements
Posted by Joachim Schrod <js...@acm.org>.
On 10/16/13 11:37, frasese wrote:
>
> there is a way to update the status of multiple elements with a single ajax
> behaviour?
>
> For example, if we have two different DropDownChoice elements, each one with
> its own AjaxFormComponentUpdatingBehavior... when the "onchange" event is
> triggered, one has his value updated, but not the other one.
>
> So, my question is, how to update both? For example, update both with a
> button, onclick..
You need to target.add(otherComponent) in your
UpdatingBehavior.onUpdate(target), maybe also in onError.
HTH,
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jschrod@acm.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Ajax behaviour for multiple elements
Posted by Sven Meier <sv...@meiers.net>.
You can use an AjaxFormSubmitBehavior to submit the whole form.
Sven
On 10/16/2013 11:37 AM, frasese wrote:
> Hi all,
>
> there is a way to update the status of multiple elements with a single ajax
> behaviour?
>
> For example, if we have two different DropDownChoice elements, each one with
> its own AjaxFormComponentUpdatingBehavior... when the "onchange" event is
> triggered, one has his value updated, but not the other one.
>
> So, my question is, how to update both? For example, update both with a
> button, onclick..
>
> Thanks in advance, and regards.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-behaviour-for-multiple-elements-tp4661835.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org