You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by SantiagoA <s....@gmx.de> on 2007/10/09 17:08:51 UTC
AjaxFormChoiceComponentUpdatingBehavior doesn´t get event
I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup.
I thought it would handle the event, when a RadioButton is clicked.
But when i click on a RadioButton the onUpdate-method is never reached.
my Code:
final RadioGroup radioGroup = new RadioGroup("group", new
PropertyModel(this, "selectedCode"));
radioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior(){
private static final long serialVersionUID = -5356375735369681460L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
selectedCode = (Code)getModelObject();
target.addComponent(targetComponent);
}
});
Is my expectation wrong?
Am i using the wrong ajax behavior?
I tried also with AjaxFormComponentUpdatingBehavior and AjaxEventBehavior
but it didn´t work either.
I´m using wicket1.3.0beta3 and ajax-updates are working on input-components.
--
View this message in context: http://www.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-doesn%C2%B4t-get-event-tf4594788.html#a13117508
Sent from the Wicket - User 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: AjaxFormChoiceComponentUpdatingBehavior doesn´t get event
Posted by Michael Laccetti <mi...@s2g.ca>.
I suspect you need to do AjaxFormChoiceComponentUpdatingBehavior("onchange") { ... } or something similar.
Mike
SantiagoA wrote:
>
> I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup.
> I thought it would handle the event, when a RadioButton is clicked.
> But when i click on a RadioButton the onUpdate-method is never reached.
>
> my Code:
>
> final RadioGroup radioGroup = new RadioGroup("group", new
> PropertyModel(this, "selectedCode"));
> radioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior(){
> private static final long serialVersionUID = -5356375735369681460L;
> @Override
> protected void onUpdate(AjaxRequestTarget target) {
> selectedCode = (Code)getModelObject();
> target.addComponent(targetComponent);
> }
> });
>
> Is my expectation wrong?
> Am i using the wrong ajax behavior?
>
> I tried also with AjaxFormComponentUpdatingBehavior and AjaxEventBehavior
> but it didn´t work either.
> I´m using wicket1.3.0beta3 and ajax-updates are working on input-components.
>
>
>
> --
> View this message in context:
> http://www.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-doesn%C2%B4t-get-event-tf4594788.html#a13117508
> Sent from the Wicket - User 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
Re: AjaxFormChoiceComponentUpdatingBehavior doesn´t get event
Posted by Swaroop Belur <sw...@gmail.com>.
Try putting it on the radios instead of radio group .
-swaroop
On 10/9/07, SantiagoA <s....@gmx.de> wrote:
>
>
> I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup.
> I thought it would handle the event, when a RadioButton is clicked.
> But when i click on a RadioButton the onUpdate-method is never reached.
>
> my Code:
>
> final RadioGroup radioGroup = new RadioGroup("group", new
> PropertyModel(this, "selectedCode"));
> radioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior(){
> private static final long serialVersionUID = -5356375735369681460L;
> @Override
> protected void onUpdate(AjaxRequestTarget target) {
> selectedCode = (Code)getModelObject();
> target.addComponent(targetComponent);
> }
> });
>
> Is my expectation wrong?
> Am i using the wrong ajax behavior?
>
> I tried also with AjaxFormComponentUpdatingBehavior and AjaxEventBehavior
> but it didn´t work either.
> I´m using wicket1.3.0beta3 and ajax-updates are working on
> input-components.
>
>
>
> --
> View this message in context:
> http://www.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-doesn%C2%B4t-get-event-tf4594788.html#a13117508
> Sent from the Wicket - User 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
>
>
--