Thanks for the suggestion (to hit the Java Books, further), Per. I'm sure
that is sage advice.
However, just to clarify...
- I am aware that RadioChoice *is* a different Type than String
- my question: how is a RadioChoice value converted back and forth with
a String?
- It appears (to me)
Scott,
To answer your last question, to set a selected value on the RadioChoice,
you must set the PropertyModel's value to what you want selected. One thing
that took me a while to figure out personally (and I have been programming
in java for several years) is that the Object you set in the
Thanks Clay. I think I have reached a point in Wicket that is providing (me)
the motivation to go 'back' to the Java Book and push forward (through the
java learning curve). I'm getting there, slowly but surely. ;-)
In the process, it looks like I will be familiarizing myself with the Swing
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
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 rely on
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. using
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 fail, due to
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
Sorry, I am new to Java (as well as Wicket). As it stands, I do not have a
handle on Models. I have determined to head down the Wicket road (as I
learn Java). Thus, I am looking for clear examples (which I am finding all
too difficult to find). BTW, I am hoping your book will be written 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(sexRadioChoice
set it in your model object.
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 like to know if I can have a
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 yes how ? (I didn't find on
12 matches
Mail list logo