class mypanel extends panel {
private List options;

mypanel () { add(new dropdownchoice("id",model, new PropertyModel(this,
"options"),...);}

now that it is using a property model to retrieve its choices just
add/remove items from the options list

-igor



On 8/24/07, andrea pantaleoni <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I'm creating a DropDownChoice in this way:
> DropDownChoice dropDownChoice = new
> DropDownChoice(id,PropertyModel(beanName,"propertyName"),List,renderer)
>
> Now I want to add a choice with key 0 and Value "" (empty string)
> I was looking for the API and I expected to find something like
> dropDownChoice.addChoice(choice) but there is not.
>
> Is there a way to add a extra choice after the dropdown component is
> built?
>
> Many thanks
> Andrea
> --
> View this message in context:
> http://www.nabble.com/Add-a-choice-to-a-DropDownChoice-tf4322067.html#a12307733
> 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