Thanks Igor and Per. It appears that my ignorance is further complicated by
RadioChoice... as I do not yet have a solution. Note: I have changed
sexRadioChoice to genderChoice.
Here is what I declare:
private RadioChoice genderChoice;
public RadioChoice getGender(){
return genderChoice.getModelObjectAsString();
}
public void setGender(){
this.genderChoice = "Male";
}
Both of my Methods fail, due to incompatible Types. Hence, I don't get what
I need to do to display a RadioChoice (on a Form) and Get/Set the values
(which I will be storing in a database). Additional note: I am picked up
'getModelObjectAsString' from a Login Example.
Scott
Newgro wrote:
>
>> properties.setSexRadioChoice(MALE);
> What Igor tries to say (;-) is that you can set the default value to the
> object instance, which your checkbox is accessing. In your case this is
> properties. Simply do it before you render the page / checkbox.
>
> Because you set the property access expression to "sexRadioChoice" you
> have to
> provide a method named getSexRadioChoice / setSexRadioChoice(anything).
> The setter method can be used to achieve your goal.
>
> The short form was Igors answer.
>
> Cheers
> Per
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/RadioChoice-%3A-default-choice---tp14876844p14961435.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]