You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Steve Mactaggart <st...@whitesquaresoft.com> on 2009/12/14 05:47:35 UTC

Can you attach multiple AjaxFormComponentUpdatingBehavior to the same component?

Hi all,

First up must say that I love wicket, and hope to have some elements
to contribute back to the community soon.  I'm working on building a
set of enhanced components, but have run into a problem.

I am building a FormComponentPanel that has an a DropDownChoice within
it.  I want the panel to be able to get onchange events from the
DropDown, and also require the user of this component to set their own
listener.

To do this I am catching the add(IBehaviours... ) method, and passing
them to the internal dropdownchoice, as it is the true form component
of my panel.

But when I do this, it seems that the last
AjaxFormComponentUpdatingBehavior added to the component wins, and
none of the other behaviours watching for the onchange get notified.

Is it possible to have multiple AjaxFormComponentUpdatingBehavior
objects added to the same form component?

Steve

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