I've made a sample page.
public class HomePage extends WebPage {
private static final long serialVersionUID = 1L;
public HomePage(final PageParameters parameters) {
String[] choices = new String[]{ "Wicket", "Spring", "DB4O" };
final RadioGroup<String> group = new RadioGroup<String>("group", new
Model<String>());
ListView<String> groupView = new ListView<String>( "groupView" ,
Arrays.asList( choices )){
private static final long serialVersionUID = 1L;
@Override
protected void populateItem(ListItem<String> item) {
item.add( new Radio<String>( "radio", new
Model<String>() ));
}
};
group.setOutputMarkupId( true );
group.add( new AjaxFormChoiceComponentUpdatingBehavior(){
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
// TODO: Check this
System.out.println( "Here" );
}
});
group.add( groupView );
Form<Void> form = new Form<Void>( "form" );
form.add( group );
add( form );
}
}
--
View this message in context:
http://www.nabble.com/Problem-with-RadioGroup---Ajax-tp24300010p24302858.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]