changed java code to: final Radio selectable = new Radio("selectable", new Model(Boolean.FALSE)); selectable.setOutputMarkupPlaceholderTag(true); /*selectable.add(new AttributeAppender("onclick", new Model("if (event.stopPropagation) { "+ "event.stopPropagation();"+ "} else { "+ "event.cancelBubble = true;" +"}"), ";"));*/ selectable.add(new AjaxEventBehavior("onclick") { @Override protected void onEvent(AjaxRequestTarget target) { System.out.println("inside onclick"); accordion(target, dienstsContainer, descriptionContainer, dienstContainer); } @Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.setAllowDefault(true); attributes.setEventPropagation(EventPropagation.STOP); } });
Still not working. I can see the dot inside the radio when i click but then it goes away immediately. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Radio-button-select-not-selecting-tp4669792p4669794.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