Re: SOLVED Re: Problem with DropDownChoice on 1.4M3

2008-09-17 Thread Daan van Etten
Great you figured it out! Some problems have simple solutions... Regards, Daan On 17 sep 2008, at 16:07, Anders Peterson wrote: Isn't it always like this; as soon as you ask someone you start thinking about the problem differently. Or should I say you start thinking straight. The problem w

SOLVED Re: Problem with DropDownChoice on 1.4M3

2008-09-17 Thread Anders Peterson
Isn't it always like this; as soon as you ask someone you start thinking about the problem differently. Or should I say you start thinking straight. The problem was, of course, with the equals-method of the listed objects (two instances of that class would never be equal). Thanks for being the

Re: Problem with DropDownChoice on 1.4M3

2008-09-17 Thread Anders Peterson
This is the code that creates the DropDownChoice: myForm.add(new DropDownChoice("views", this.getPortfolio().getViews(), new ChoiceRenderer("toDisplayString")) { @Override protected void onSelectionChanged(BLView newSelection) { super.onSelectionChange

Re: Problem with DropDownChoice on 1.4M3

2008-09-17 Thread Daan van Etten
On 17 sep 2008, at 14:55, Anders Peterson wrote: My DropDownChoice always displays as if nothing is selected. Using it works fine, but every time the page is (re)loaded the selection is reset. wantOnSelectionChangedNotifications return true. I have an older version of my app deployed (usin

Problem with DropDownChoice on 1.4M3

2008-09-17 Thread Anders Peterson
My DropDownChoice always displays as if nothing is selected. Using it works fine, but every time the page is (re)loaded the selection is reset. wantOnSelectionChangedNotifications return true. I have an older version of my app deployed (using an older version of Wicket) that works as expected.