This is the code that creates the DropDownChoice:

myForm.add(new DropDownChoice<BLView>("views", this.getPortfolio().getViews(), new ChoiceRenderer<BLView>("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]

Reply via email to