Hi,

Paste the hTML that you use for radio2RadioGroup.

On Thu, Apr 19, 2012 at 2:34 PM, topradnya <toprad...@gmail.com> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to