is that a listview?
do you have called setReuseItems() ?

else the radio's are constantly replaced with new once and that could be the
problem

On Nov 12, 2007 10:31 AM, tbt <[EMAIL PROTECTED]> wrote:

>
> Hi
>
> Here is the code that uses RadioGroup
>
>
> public class RadioListView extends ListView
> {
>        /**
>         *
>         */
>        private static final long serialVersionUID = 1L;
>
>        //private static Logger log =
> Logger.getLogger(RadioListView.class.getName());
>
>        public RadioListView(String id,ArrayList<OptionBean>
> optionList,PaperModel
> paperModel)
>        {
>                super(id,optionList);
>        }
>
>        @Override
>        protected void populateItem(ListItem item)
>        {
>                final OptionBean optionBean = (OptionBean)
> item.getModelObject();
>                Radio radioButton = new TextRadio("radio",new Model("" +
> optionBean.getOptionId()),optionBean.getOptionId());
>                item.add(radioButton);
>                Label radioLabel = new Label("radioValue",
> optionBean.getOptionText());
>                item.add(radioLabel);
>                if(optionBean.getOptionText() != null &&
> "".equals(optionBean.getOptionText()))
>                {
>                        radioLabel.setVisible(false);
>                }
>                else
>                {
>                        radioLabel.setVisible(true);
>                }
>                WebComponent imageLabel = new
> TextImage("imageLabel",optionBean.getOptionImage());
>                item.add(imageLabel);
>                if(optionBean.getOptionImage() != null &&
> "".equals(optionBean.getOptionImage()))
>                {
>                        imageLabel.setVisible(false);
>                }
>                else
>                {
>                        imageLabel.setVisible(true);
>                 }
>        }
>
>
> }
>
> msc65jap wrote:
> >
> > Hello,
> >
> > Please send your code.
> >
> > J.
> >
> > On Nov 9, 2007 9:48 AM, tbt <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi
> >>
> >> I'm a newbie to wicket and i'm using RadioGroup in my application. But
> >> sometimes it gives the following runtime exception
> >>
> >> ERROR (RequestCycle.java:1043) - submitted http post value [radio0] for
> >> RadioGroup component [27:paperForm:panel:radioGroup] is illegal because
> >> it
> >> does not contain relative path to a Radio componnet. Due to this the
> >> RadioGroup component cannot resolve the selected Radio component
> pointed
> >> to
> >> by the illegal value. A possible reason is that componment hierarchy
> >> changed
> >> between rendering and form submission.
> >> wicket.WicketRuntimeException: submitted http post value [radio0] for
> >> RadioGroup component [27:paperForm:panel:radioGroup] is illegal because
> >> it
> >> does not contain relative path to a Radio componnet. Due to this the
> >> RadioGroup component cannot resolve the selected Radio component
> pointed
> >> to
> >> by the illegal value. A possible reason is that componment hierarchy
> >> changed
> >> between rendering and form submission.
> >>         at
> >> wicket.markup.html.form.RadioGroup.convertValue(RadioGroup.java:102)
> >>         at
> >> wicket.markup.html.form.FormComponent.convert(FormComponent.java:878)
> >>         at wicket.markup.html.form.Form$14.validate(Form.java:983)
> >>         at
> >> wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java
> :144)
> >>         at wicket.markup.html.form.Form$4.component(Form.java:459)
> >>         at wicket.MarkupContainer.visitChildren(MarkupContainer.java
> :744)
> >>         at wicket.MarkupContainer.visitChildren(MarkupContainer.java
> :759)
> >>         at
> >> wicket.markup.html.form.Form.visitFormComponents(Form.java:455)
> >>         at wicket.markup.html.form.Form.validateConversion(Form.java
> :979)
> >>         at wicket.markup.html.form.Form.validate(Form.java:953)
> >>         at wicket.markup.html.form.Form.process(Form.java:867)
> >>         at wicket.markup.html.form.Form.onFormSubmitted(Form.java:310)
> >>         at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
> >>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> >> Source)
> >>         at java.lang.reflect.Method.invoke(Unknown Source)
> >>         at
> >> wicket.RequestListenerInterface.invoke(RequestListenerInterface.java
> :163)
> >>         at
> >>
> wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents
> (ListenerInterfaceRequestTarget.java:74)
> >>         at
> >> wicket.request.compound.DefaultEventProcessorStrategy.processEvents(
> DefaultEventProcessorStrategy.java:65)
> >>         at
> >>
> wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents
> (AbstractCompoundRequestCycleProcessor.java:57)
> >>         at
> >> wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
> >>         at
> >> wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
> >>         at wicket.RequestCycle.step(RequestCycle.java:1010)
> >>         at wicket.RequestCycle.steps(RequestCycle.java:1084)
> >>         at wicket.RequestCycle.request(RequestCycle.java:454)
> >>         at
> >> wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
> >>         at
> >> wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:262)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> >>         at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:290)
> >>         at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
> >>         at
> >> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:233)
> >>         at
> >> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:175)
> >>         at
> >> org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:128)
> >>         at
> >> org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:102)
> >>         at
> >> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:109)
> >>         at
> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :263)
> >>         at
> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :844)
> >>         at
> >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
> (Http11Protocol.java:584)
> >>         at
> >> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> >>         at java.lang.Thread.run(Unknown Source)
> >>
> >> This doesn't happen often and only happens once in a while. How can I
> fix
> >> this
> >>
> >> Thanks
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Wicket-runtime-Exception-tf4776682.html#a13663985
> >> Sent from the Wicket - User mailing list archive at 
> >> Nabble.com<http://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]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Wicket-runtime-Exception-tf4776682.html#a13702413
>  Sent from the Wicket - User mailing list archive at 
> Nabble.com<http://nabble.com/>
> .
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to