Hi,
I'm also seeing time to time this exception with 1.4.8, the only
difference is, that I'm using the radiogroup within a wizard. (the
wizard buttons are Ajax buttons).
Any thoughts, how could this happen?
Thanks,
Peter
2010-08-19 16:40 keltezéssel, Grafas írta:
>
> Hi all,
> we are using Wicket 1.3.5 and from time to time we keep getting
> WicketRuntimeException:
> submitted http post value [radio-31045] for RadioGroup component
> [31:contentcontainer:requestEditForm:currencySelectionPanel:currencySelectionForm:sellBuy]
> 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
> org.apache.wicket.markup.html.form.RadioGroup.convertValue(RadioGroup.java:117)
> at
> org.apache.wicket.markup.html.form.FormComponent.convertInput(FormComponent.java:1189)
> at
> org.apache.wicket.markup.html.form.FormComponent.validate(FormComponent.java:1093)
> at
> org.apache.wicket.ajax.form.AjaxFormChoiceComponentUpdatingBehavior.respond(AjaxFormChoiceComponentUpdatingBehavior.java:164)
> at
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:297)
> at
> org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100)
> at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:91)
> at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
>
> I can't get exactly why I'm getting it and I can't reproduce it. The panel
> is where these radio buttons are is updated by ajax quite a lot. In fact
> every second. Cant this be the problem?
> Here is part of code with radio buttons:
>
> RadioGroup operation = new RadioGroup("sellBuy");
> operation.setRequired(true);
> currencyForm.add(operation);
>
> Radio buyActionRadio = new Radio("actionBUY", new
> Model(Operation.BUY));
> buyActionRadio.setMarkupId("actionBUY");
> buyActionRadio.setOutputMarkupId(true);
> operation.add(buyActionRadio);
> operation.add(new Label("actionBUYLabel", new
> StringResourceModel("buyCurrency", null, "buyCurrency")));
>
> Radio sellActionRadio = new Radio("actionSELL", new
> Model(Operation.SELL));
> sellActionRadio.setMarkupId("actionSELL");
> sellActionRadio.setOutputMarkupId(true);
> operation.add(sellActionRadio);
> operation.add(new Label("actionSELLLabel", new
> StringResourceModel("sellCurrency", null, "sellCurrency")));
>
> WebMarkupContainer amountCurrencyCont = new
> WebMarkupContainer("amountCurrencyCont");
> currencyForm.add(amountCurrencyCont);
>
> final Label shownActionLabel = new Label("shownActionLabel", new
> StringResourceModel("${sellBuy}", model, ""));
> shownActionLabel.setOutputMarkupId(true);
> amountCurrencyCont.add(shownActionLabel);
> operation.add(new AjaxFormChoiceComponentUpdatingBehavior() {
> protected void onUpdate(AjaxRequestTarget target) {
>
> deal.setSellAmountFixed(!deal.isSellAmountFixed());
> target.addComponent(shownActionLabel);
> recalculateAmountAndProfit();
> fireChange(target);
> currencyForm.process();
> }
> });
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org