This has to work yes, the only thing is do build up the new
Model(states) as States so the same type of object as vendor.state
returns.

On 3/7/08, Kai Mutz <[EMAIL PROTECTED]> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to