Hi all,
i'm trying to use the AjaxFormChoiceComponentUpdatingBehavior on a RadioGroup
component,
unfortunately, no ajax request is triggered when the RadioBoxes are clicked.
Here's the code i'm using right now:
Form form = new Form("addressform");
String[] choices = new String[]{ "Wicket", "Spring", "DB4O" };
group = new RadioGroup("group", new Model<String>());
ListView<String> deliveryAddresses = new ListView<String>("deliveryaddresses",
Arrays.asList(choices)) {
@Override
protected void populateItem(ListItem<String> item) {
item.add(new Radio<String>("group-choice", new
Model<String>()));
}
};
group.setOutputMarkupId(true);
group.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println("on change");
}
});
group.add(deliveryAddresses);
form.add(group);
add(form);
/* markup */
<wicket:panel>
<form wicket:id="addressform">
<table>
<span wicket:id="group">
<tr wicket:id="deliveryaddresses">
<td><input type="radio"
wicket:id="group-choice"/></td>
</tr>
</span>
</table>
</form>
</wicket:panel>
Has anyone an idea what i might be missing ?
thanks!
-robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]