Re: DropDownChoice with ID and Value

2009-07-28 Thread John Krasnay
Nilsson wrote: Wasn't this more awkward? -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24690478.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice with ID and Value

2009-07-28 Thread Mathias Nilsson
Yes, you are right. Didn't read the question close enough. -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24703752.html Sent from the Wicket - User mailing list archive at Nabble.com

DropDownChoice with ID and Value

2009-07-27 Thread carlson weber filho - Master CIM Informá tica
Newbie question: I have a list of 3 options, let's supose it's 1=abc, 2=def, 3=ghi I will present to my user the select field with the choices abc, def and ghi. I want that my model updates with 1, 2 and 3. I did not find a way to achieve this (must me a simple thing). best regards,

Re: DropDownChoice with ID and Value

2009-07-27 Thread Scott Swank
Look at ChoiceRenderer. It's pretty easy to write one that takes a map in it's constructor if your needs are that simple. Scott 2009/7/27 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: Newbie question: I have a list of 3 options, let's supose it's 1=abc, 2=def, 3=ghi

Re: DropDownChoice with ID and Value

2009-07-27 Thread carlson weber filho - Master CIM Informá tica
Will try it, thanks a lot Scott Swank escreveu: Look at ChoiceRenderer. It's pretty easy to write one that takes a map in it's constructor if your needs are that simple. Scott 2009/7/27 carlson weber filho - Master CIM Informática cwe...@mastercim.com.br: Newbie question: I have a list of

Re: DropDownChoice with ID and Value

2009-07-27 Thread Mathias Nilsson
= new DropDownChoice( drop , new Model( c ) , choices, new ChoiceRenderer( value , id ) ); -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24686931.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice with ID and Value

2009-07-27 Thread John Krasnay
the other values // The choice with id 1 will be selected. DropDownChoice drop = new DropDownChoice( drop , new Model( c ) , choices, new ChoiceRenderer( value , id ) ); -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24686931.html

Re: DropDownChoice with ID and Value

2009-07-27 Thread Mathias Nilsson
Wasn't this more awkward? -- View this message in context: http://www.nabble.com/DropDownChoice-with-ID-and-Value-tp24686742p24690478.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e