Thanks that worked great.
--
View this message in context:
http://www.nabble.com/Default-choice-tp17135706p17163055.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL
";
> }
>
> This is rather teedious to have this in every drop list. I it possible to
> have a default choice without using this? I know I can set setNullValid(
> true ) but I can't handle the localization default choice.
> --
> View this message in context:
> http
his is rather teedious to have this in every drop list. I it possible to
have a default choice without using this? I know I can set setNullValid(
true ) but I can't handle the localization default choice.
--
View this message in context:
http://www.nabble.com/Default-choice-tp17135706p1
On Jan 21, 2008 1:08 PM, Per Newgro <[EMAIL PROTECTED]> wrote:
> > Getting familiar with Swing will almost certainly help you get Wicket.
> > Just keep in mind that with Swing, you would update values by
> > 'pushing' them (for which you'd typically make heave use of the
> > observer pattern, e.g.
> Getting familiar with Swing will almost certainly help you get Wicket.
> Just keep in mind that with Swing, you would update values by
> 'pushing' them (for which you'd typically make heave use of the
> observer pattern, e.g. using PropertyChangeListeners etc), whereas
> with Wicket you would rel
> In the process, it looks like I will be familiarizing myself with the Swing
> library -- which, will probably enhance my appreciation (and understanding)
> of Wicket.
Getting familiar with Swing will almost certainly help you get Wicket.
Just keep in mind that with Swing, you would update values
ro wrote:
>>
>>
>> The example you should understand is here
>> http://www.wicketstuff.org/wicket13/forminput/
>> There is a link in the upper right corner with source code. The classes
>> FormInput.java and FormInputModel.java should help you out.
>>
>
>
>
--
View this message in context:
http://www.nabble.com/RadioChoice-%3A-default-choice---tp14876844p15001375.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMA
development. It makes it easier for everyone :-)
>
> Cheers
> Per
>
> ---------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in
Am Freitag, 18. Januar 2008 23:43:18 schrieb scottomni:
>
> private RadioChoice genderChoice;
>
> public RadioChoice getGender(){
> return genderChoice.getModelObjectAsString();
> }
>
> public void setGender(){
> this.genderChoice = "Male";
> }
>
> Both of my Methods f
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 PROTEC
> 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
On Jan 18, 2008 11:27 AM, scottomni <[EMAIL PROTECTED]> wrote:
> OK. I have the following line in a Wicket Panel, which adds a RadioChoice
> to a Form. Is it not possible to modify my line of code to 'include' a
> default selection?
>
> -
> add(sexRadio
t.
Martijn
On 1/16/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello,
> I'm using a RadioChoice component like this :
> RadioChoice Radios = new RadioChoice("ca_reel", new
> PropertyModel(this.getModelObject(), "ca_reel"), Choices);
> I would li
ot;), Choices);
> I would like to know if I can have a default choice selected (the first in
> my variable List Choices) and if yes how ? (I didn't find on wicket API
> page nor that on examples)
> Thanks
>
>
> -
ot;), Choices);
> I would like to know if I can have a default choice selected (the first in
> my variable List Choices) and if yes how ? (I didn't find on wicket API
> page nor that on examples)
> Thanks
>
>
> -
Hello,
I'm using a RadioChoice component like this :
RadioChoice Radios = new RadioChoice("ca_reel", new
PropertyModel(this.getModelObject(), "ca_reel"), Choices);
I would like to know if I can have a default choice selected (the first in
my variable List Choices) and if
17 matches
Mail list logo