Hi,

is #accordion() adding the listView or any of its parents to the AjaxRequestTarget? Then the radios are replaced in the browser and lose their selection.

You should use an AjaxFormChoiceComponentUpdatingBehavior on the RadioGroup instead.

Regards
Sven


Am 02.03.2015 um 13:19 schrieb avchavan:
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: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to