You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Edvin Syse <ed...@sysedata.no> on 2008/05/07 00:31:16 UTC

How to use AjaxFormChoiceComponentUpdatingBehavior?

Hi,

When I add AjaxFormChoiceComponentUpdatingBehavior to a RadioChoice, I 
get the "Wicket Ajax Debug" link on my page, but the onUpdate() / 
onError() methods of the behaviour is not called when I click on a choice.

What am I missing? :)

Also, I spent 30 minutes before reading the JavaDoc on 
AjaxFormComponentUpdatingBehavior, stating that that behaviour doesn't 
work with RadioChoice. Maybe it could throw an Exception if added to a 
Choice-component, it is not completely obvious that the normal 
updatingbehaviour doesn't work with a RadioChoice :) (I understand that 
it is because a RadioChoice is not a single component though).

With AjaxFormComponentUpdatingBehavior, you supply the event in the 
constructor, but the AjaxFormChoiceComponentUpdatingBehavior doesn't 
have that. What client side event does it attach to?

-- Edvin

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