Hi, Paste the hTML that you use for radio2RadioGroup.
On Thu, Apr 19, 2012 at 2:34 PM, topradnya <[email protected]> wrote: > 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] > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
