Re: DropDownChoice getting value into the model

2008-04-27 Thread Russell Webb
object will be put into your model, dropdown choice works like this: DropDownChoiceT(String id, IModelT model, IModelListT choices, IChoiceRenrererT renderer) -igor -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907046

Re: DropDownChoice getting value into the model

2008-04-24 Thread Russell Webb
will be put into your model, dropdown choice works like this: DropDownChoiceT(String id, IModelT model, IModelListT choices, IChoiceRenrererT renderer) -igor -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907046.html Sent

Re: DropDownChoice getting value into the model

2008-03-17 Thread 242
in swing or tapestry would help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value

Re: DropDownChoice getting value into the model

2008-03-11 Thread rmattler
everybody should buy one or two. How is that for a plug? -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p1597.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice getting value into the model

2008-03-10 Thread rmattler
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15950742.html Sent from the Wicket - User mailing list archive

Re: DropDownChoice getting value into the model

2008-03-10 Thread Martijn Dashorst
] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15950742.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice getting value into the model

2008-03-09 Thread Johan Compagner
This has to work yes, the only thing is do build up the new Model(states) as States so the same type of object as vendor.state returns. On 3/7/08, Kai Mutz [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: It is nice to know I'm not the only one struggling with DropDownChoices. I'm new to

Re: DropDownChoice getting value into the model

2008-03-09 Thread Johan Compagner
No it works also good, exactly the same if you where using the swing combobox. The problem that you have is that when you have an id (integer) in your object model that needs to be set but thagt id is the id of a Person then i think your object model is just plain wrong. Its not an object model at

Re: DropDownChoice getting value into the model

2008-03-09 Thread Erik van Oosten
Hi Vitaly, That is correct. For primitive model values you need something like a map. I think the DropDownBox was more designed for complex data where the data to display is embedded in the model value itself. Anyway, how would the addition of an index argument to the display method help?

Re: DropDownChoice getting value into the model

2008-03-09 Thread Vitaly Tsaplin
An index is a kind of a link between a value and its displayable representation. Having an index in getDisplayValue method we would do something like: ListInteger lang_choices = Arrays.asList (new Object [] { 1, 2, 4, 8 }); Object [] lang_labels = new Object [] { php, perl, java, c++ };

Re: DropDownChoice getting value into the model

2008-03-08 Thread Vitaly Tsaplin
Hi everyone, Hi Erik, I am sorry for so late post. But am going to go back to our DropDownChoice discussion. If you suggest me to create a list of integers and use a special renderer implementation to retrieve a displayable value you should take into account that in case if we have a

DropDownChoice getting value into the model

2008-03-07 Thread rmattler
), choiceRenderer); public class SelectOption implements Serializable { private String state; private String display; -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15905486.html Sent from the Wicket - User mailing list

Re: DropDownChoice getting value into the model

2008-03-07 Thread Igor Vaynberg
://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15905486.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: DropDownChoice getting value into the model

2008-03-07 Thread Kai Mutz
[EMAIL PROTECTED] wrote: I've tried for 1 1/2 days to get this simple Drop Down to work and I'm feeling stupid. My mom tells me I'm smart.:-( Everything works fine until I try to save it. I get the following error. I think it is trying to put the SelectOption object into the Model but I

Re: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907046.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: DropDownChoice getting value into the model

2008-03-07 Thread Igor Vaynberg
will be put into your model, dropdown choice works like this: DropDownChoiceT(String id, IModelT model, IModelListT choices, IChoiceRenrererT renderer) -igor -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907046.html

Re: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907346.html Sent from the Wicket - User mailing list archive at Nabble.com

RE: DropDownChoice getting value into the model

2008-03-07 Thread Kai Mutz
[EMAIL PROTECTED] wrote: It is nice to know I'm not the only one struggling with DropDownChoices. I'm new to Wicket and I'm pretty far with rebuilding an application we are using internally. Has anybody proposed an alternative or a wrapper to DropDownChoices? Have you tried something like:

RE: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
-getting-value-into-the-model-tp15905486p15907691.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]

RE: DropDownChoice getting value into the model

2008-03-07 Thread Kai Mütz
[EMAIL PROTECTED] wrote: Thanks for trying but I get: WicketMessage: No get method defined for class: class java.lang.String expression: state Have you defined a getter/setter for field state in your vendor class? - To

RE: DropDownChoice getting value into the model

2008-03-07 Thread rmattler
commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907944.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice getting value into the model

2008-03-07 Thread Per Newgro
But in java.lang.String there is no state property. You added a list of Strings to the ddc. But you have to add your vendor objects. The display in ddc will be done by ChoiceRenderer. Cheers Per Am Freitag, 7. März 2008 23:34:35 schrieb rmattler: Yes @Column(name = state, length = 2)