Hello,
I want to localize a DropDownChoice component. I read the examples
http://www.wicket-library.com/wicket-examples/compref/
and http://cwiki.apache.org/WICKET/dropdownchoice-examples.html.
The displayed option value is a localized string and the value is a key that
will be stored in DB.
Now I want to get the value of a selected option and store this in a form
CompoundPropertyModel.
The Object backing the model will be stored in DB.
-----code
private SelectChoise[] myList = {
new SelectChoise("alglg", new ResourceModel("list.alglg")),
new SelectChoise("algmd", new ResourceModel("list.algmd")) }
....
DropDownChoice listInput = new DropDownChoice("listInput", formModel,
Arrays.asList(myList), new ChoiceRenderer("value", "key"));
------
But I get a runtime exception. Because the expression "key" cannot be
applied on the class that is backing
my formModel. I thought that the "key" is applied on the List SelectChoise
class.
Can someone give me a hint?
Thanks a lot
--
View this message in context:
http://www.nabble.com/Localization-of-DropDownChoice-tp16224334p16224334.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]