Re: Default choice

2008-05-10 Thread Mathias P.W Nilsson
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

Re: Default choice

2008-05-09 Thread Maurice Marrink
"; > } > > 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

Default choice

2008-05-08 Thread Mathias P.W Nilsson
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

Re: RadioChoice : default choice ?

2008-01-21 Thread Eelco Hillenius
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.

Re: RadioChoice : default choice ?

2008-01-21 Thread Per Newgro
> 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

Re: RadioChoice : default choice ?

2008-01-21 Thread Eelco Hillenius
> 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

Re: RadioChoice : default choice ?

2008-01-21 Thread scottomni
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. >>

Re: RadioChoice : default choice ?

2008-01-21 Thread cblehman
> > > -- 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

Re: RadioChoice : default choice ?

2008-01-21 Thread scottomni
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

Re: RadioChoice : default choice ?

2008-01-19 Thread Per Newgro
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

Re: RadioChoice : default choice ?

2008-01-18 Thread scottomni
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

Re: RadioChoice : default choice ?

2008-01-18 Thread Per Newgro
> 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

Re: RadioChoice : default choice ?

2008-01-18 Thread Igor Vaynberg
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

Re: RadioChoice : default choice ?

2008-01-18 Thread scottomni
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

Re: RadioChoice : default choice ?

2008-01-16 Thread Alan Romaniuc
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 > > > -

Re: RadioChoice : default choice ?

2008-01-16 Thread Martijn Dashorst
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 > > > -

RadioChoice : default choice ?

2008-01-16 Thread j . bokobza
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