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

Rob

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);
         distritosDDC.setOutputMarkupId(true);
         distritosDDC.setRequired(true);

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to