I am having a problem that my DropDownChoice is not selecting the item I expect, only "Choose one". Here is the code: ... private List<Long> accountList = new ArrayList<Long>(); private Long selectedAccount;
public AccountsDropDownChoice(String id, final Component component) { super(id); initializeAccounts(); selectedAccount = getDefaultAccount(); final DropDownChoice<Long> dropDown = new DropDownChoice<Long>("accountsDropDown", new PropertyModel(this, "selectedAccount"), accountsList) { } The value selectedAccount is being updated correctly when an item in the dropdown is selected, but the dropdown is not defaulting to the value in that field to begin with. If anyone can help it is very appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-how-to-select-default-item-tp2402960p2402960.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org