no, assuming radio2 was selected it will be like this:

radioGroup.setModelObject(radio2.getModelObject())

-Igor


On 4/29/06, Michael Day <[EMAIL PROTECTED]> wrote:

On Apr 28, 2006, at 10:57 PM, Igor Vaynberg wrote:

> First:
> Read the javadoc again:
>  * The model object of the gorup is set to the model object of
>  * the selected radio component or null if none selected.
>
> So the RadioGroup's model is the correct property model. What is
> incorrect is the model you set on the Radio components. The Radio
> component's model object is what will be put into the RadioGroup's
> model. Does that make sense?

Yes, that's what I was hoping for...

RadioGroup group = new RadioGroup("response", new PropertyModel(q,
"response"));
group.add(new Radio("radio1"));
group.add(new Radio("radio2"));

But doesn't wicket try to call q.getResponse().setRadio1() and
q.getResponse().setRadio2() instead of q.setResponse()?


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to