Hi Threre, I am struggling to sort this problem but I could do not. I want to set deafult value to dropdownchoice. I used setModel(new CompoundPropertyModel(new String("All"))); it words very well and it seted the default value, but the probelm when I submit the for the value become null
my code: private final List rooms = Arrays.asList(new String[] {"All","Studio" , "1", "2","3","4","5 or more" }); DropDownChoice bed_room=new DropDownChoice("Bed Rooms", new PropertyModel(properties, "Bed Rooms"), rooms); bed_room.setRequired(true); bed_room.setModel(new CompoundPropertyModel(new String("All"))); add(bed_room); I amdisappointed, I hope I can find any help to sort this problem -- View this message in context: http://www.nabble.com/DropDownChoice-and-default-value-tf4116683.html#a11706995 Sent from the Wicket - Dev mailing list archive at Nabble.com.