Re: SOLVED Re: Problem with DropDownChoice on 1.4M3
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 was, of course, with the equals- method of the listed objects (two instances of that class would never be equal). Thanks for being there! /Anders Anders Peterson wrote: 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.onSelectionChanged(newSelection); ...; } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }); Nothing strange... /Anders Daan van Etten wrote: 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 (using an older version of Wicket) that works as expected. Is this a known problem or could I be doing something wrong? You could be doing something wrong. Do you set the model of the DropDownChoice? Show us some code. Regards, Daan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED Re: Problem with DropDownChoice on 1.4M3
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 there! /Anders Anders Peterson wrote: 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.onSelectionChanged(newSelection); ...; } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }); Nothing strange... /Anders Daan van Etten wrote: 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 (using an older version of Wicket) that works as expected. Is this a known problem or could I be doing something wrong? You could be doing something wrong. Do you set the model of the DropDownChoice? Show us some code. Regards, Daan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with DropDownChoice on 1.4M3
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.onSelectionChanged(newSelection); ...; } @Override protected boolean wantOnSelectionChangedNotifications() { return true; } }); Nothing strange... /Anders Daan van Etten wrote: 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 (using an older version of Wicket) that works as expected. Is this a known problem or could I be doing something wrong? You could be doing something wrong. Do you set the model of the DropDownChoice? Show us some code. Regards, Daan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with DropDownChoice on 1.4M3
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 (using an older version of Wicket) that works as expected. Is this a known problem or could I be doing something wrong? You could be doing something wrong. Do you set the model of the DropDownChoice? Show us some code. Regards, Daan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with DropDownChoice on 1.4M3
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. Is this a known problem or could I be doing something wrong? /Anders - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]