Thanks for trying but I get:
WicketMessage: No get method defined for class: class java.lang.String
expression: state
Kai Mütz wrote:
>
> [EMAIL PROTECTED] <> wrote:
>> It is nice to know I'm not the only one struggling with
>> DropDownChoices. I'm new to Wicket and I'm pretty far with
>> rebuilding an application we are using internally. Has anybody
>> proposed an alternative or a wrapper to DropDownChoices?
>
> Have you tried something like:
>
> Vendor vendor = (Vendor) vendorModel.getObject();
>
> DropDownChoice stateFC = new DropDownChoice("state", new
> PropertyModel(vendor, "state"), new Model(states), choiceRenderer);
>
> This should work.
>
> Kai
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/DropDownChoice-getting-value-into-the-model-tp15905486p15907691.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]