Re: RadioGroup/Radio runtime exception

2010-12-15 Thread Grafas

Lucky me. I checked newest Wicket release (1.4.14) and saw bugfix about Radio
button.
https://issues.apache.org/jira/browse/WICKET-3175

My bug occurred because we use one page for everything. That solution worked
like a charm.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RadioGroup-Radio-runtime-exception-tp2331304p3089098.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



Re: RadioGroup/Radio runtime exception

2010-12-15 Thread Grafas

I'm kinda still stuck with this problem. Any help would be appreciated.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/RadioGroup-Radio-runtime-exception-tp2331304p3088874.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



Re: RadioGroup/Radio runtime exception

2010-08-19 Thread Major Péter
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