Hello, I have a huge form with a lot of dropdowns, and I'm using a CompoundPropertyModel. The form can also be changed between more than six languages, so everytime the user changes one value in one Dropdown, all the form is refreshed showing the DropDowns in the selected language. The problem is for getting the selected values of the DropDowns when submit...
Here is the code: Declaration of one of the combos in the page class: defaultSystemLanguage = new DropDownChoice("defaultSystemLanguage", new LoadableDetachableModel() {protected Object load() {return getImplementedLanguages();}}, new ChoiceRenderer ("languageName", "languageID")); defaultSystemLanguage.setNullValid(true); CompoundPropertyModel: private String defaultSystemLanguage; (with gets/sets) onSubmit: public void onSubmit() { System.out.println ("LANGUAGE BY DEFAULT:" + userInformation.getDefaultSystemLanguage()); This causes the following error: wicket.WicketRuntimeException: No get method defined for class: class java.lang.String expression: languageID What I'm doing wrong? If I specify a CompoundPropertyModel with one property with the same name as the DropDown, isn't supposed to be mapped directly there? Thanks in advance, Oskar -- View this message in context: http://www.nabble.com/Retrieve-selected-value-from-DropDown-tf4100672.html#a11661363 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user