I have noticed that with DropDownChoice, if the currently selected
value is Null, you get this "choose one" item. And sometimes in a
dynamic situation you get it still.

Try using the analogous ListChoice element, at least it worked for me.

**
Martin

2008/6/11 nitinkc <[EMAIL PROTECTED]>:
>
> I tried setNullValid(false). But this does not get rid of the "choose one"
> option. Note that the choices are a list of Strings. If the choices are a
> list of other user defined object types and I use a choicerendrer for
> display values, the "choose one" option is removed(without
> setNullValid(false)). Any ideas?
>
>
> Michael O'Cleirigh wrote:
>>
>> Hi nitinkc,
>>
>> Calling setNullValid (false) on the drop down choice should get rid of
>> the default "choose one" text.
>>
>> If the ddc model should always have a value defined then you could set
>> the model object to be for example the first choice.
>>
>> e.g. ddc.setModelObject (ddc.getChoices().get(0));
>>
>> Regards,
>>
>> Mike
>>
>>> I would like to remove the default "choose one" option from the
>>> DropDownChoice component.
>>> Does anyone know how to do this. Thanks.
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Dropdownchoice-without-default-option-%22choose-one%22-tp17782776p17783862.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]
>
>

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

Reply via email to