Hello there. Im trying to submit a form, a simple one, that have some textfields, checkboxes and some comboboxes (DropDownChoice class). The model of the form is the CompoundPropertyModel which is setted like this:
setModel(new CompoundPropertyModel(userInput)); The userInput is an instance of a class that have getters and setters which the names are the id's of the fields. When i submit the form, every field is filled with the user input information except the fields to the comboboxes which are empty. The dropdownchoices are instanciated like this: ===== JAVA CODE ===== selectedDistrito = new SelectedChoice(); distritos = new DropDownChoice("distritos", new PropertyModel(selectedDistrito, "selectedChoice"), distritosModel); ===== THE SELECTED CHOICE CLASS ===== public class SelectedChoice implements Serializable{ private String selectedChoice = null; /** Creates a new instance of SelectedChoice */ public SelectedChoice() { } public String getSelectedChoice() { return selectedChoice; } public void setSelectedChoice(String selectedChoice) { this.selectedChoice = selectedChoice; } } ===== END OF JAVA CODE ===== How can i in the CompoundPropertyModel fill the instance variables concerned to the dropdownchoices? Thank you very much -- Marco Santos