but you dont set what that value is...Radio component doesnt have a model - so it tries to use the compound one and do getRadio1() on it, and thus the error for the missing getter.

add(new Radio("radio1", new Model("response")));

-Igor


On 4/29/06, Michael Day <[EMAIL PROTECTED]> wrote:
So then why do I get this message?

WicketMessage: No get method defined for class: class model.FormModel
_expression_: radio1

Again, here is the code snippet:

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

What I want is for the radio group to eventually save the selected
value into q.setResponse().

Thanks,
Michael Day

On Apr 29, 2006, at 12:54 PM, Igor Vaynberg wrote:

> no, assuming radio2 was selected it will be like this:
>
> radioGroup.setModelObject(radio2.getModelObject ())
>


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to