It should work with the value in your model. In your case something like selectedDistrito.setSelectedChoice(1);


On 5/30/09 3:02 AM, Marco Santos wrote:
Here is the creation of the DDC:

private void buildDistritosComboBox() {
         DistritosModel distritosModel = new DistritosModel();
         SelectedChoice selectedDistrito = new SelectedChoice();//A class
with a variable selectedChoice and it getter and setter
         DropDownChoice distritosDDC = new DropDownChoice("distritos", new
PropertyModel(selectedDistrito, "selectedChoice"), distritosModel);

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to