I have a following piece of code

radio1RadioGroup.add(onScreenRadio.add(new AjaxEventBehavior("onChange ") {

                    protected void onEvent(AjaxRequestTarget target) {

                         radio2RadioGroup.setDefaultModel(firstRadioModel);
                                                                        
target.addComponent(radio2RadioGroup);
                    }
                }));


radio1RadioGroup.add(textFileRadio.add(new AjaxEventBehavior("onChange ") {

                    protected void onEvent(AjaxRequestTarget target) {

                        radio2RadioGroup.setDefaultModel(secondRadioModel);
                                                               
target.addComponent(radio2RadioGroup);
                    }
                }));

I am getting an excepiton onChange event of outPutRadioGroup
IllegalStateException: Ajax render cannot be called on component that has
setRenderBodyOnly enabled. Component: [MarkupContainer [Component id =
radio2RadioGroup]]

if I set setRenderBodyOnly(false) for radio2RadioGroup; then Nothing
happens.

Please  suggest me the work around.

Regards,
Pradnya

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Radio-Group-Ajax-Render-issue-tp4570589p4570589.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]

Reply via email to