you have to set the model of the dropdownchoice.
let's say you initiated the drowdownchoice with a list of strings (eg. "a",
"b", "c")
and you want to pre-select "b", you call:
choice.setModelObject("b");
that's it...
the same concept applies if you have "complex" datatypes (eg a pojo).

hth,
  gerolf

On 9/16/07, chickabee <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am looking for an equivalent to:
> DropDownChoice.setSelected(Object object)
>
> I looked into API docs but can't figure it out.  I have drop down with 18
> different choices and I want to select one from either on the available
> values based on a PageParameter received.
>
> Help please! Thanks!!
> --
> View this message in context:
> http://www.nabble.com/DropDownChoice.setSelected%28Object-object%29-tf4462708.html#a12725679
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to