We have a pair od radiobuttons in our html. They have some html around them, and so forth. They are not dynamic. When the selection changes, we want an ajax event to make other stuff visible or not.
RadioGroup rg = new RadioGroup("rg1"); rg.add(new Radio("rg1-opt1",new Model("test1")).setOutputMarkupId(true)); rg.add(new Radio("rg1-opt2",new Model("test2")).setOutputMarkupId(true)); rg.add(new AjaxFormChoiceComponentUpdatingBehavior() { @Override protected void onUpdate(AjaxRequestTarget arg0) { System.out.println("ajax here!"); } }); rg.setMarkupId("rg1"); rg.setOutputMarkupId(true); form.add(rg); The page renders, but the ajax event never arrives. The static html has a ul tag onto which the RadioGroup is mapped, and the two items of the list are inputs of type radio bound to opt1 and 2. So question 1, is why aren't we getting the event, and question 2 is are we using the RadioGroup wrong? It seems wrong. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/RadioGroup-ajax-update-tp4676682.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org