I needed to do the same thing. I saw this on another post and it works
fine. Override getDefaultChoice:
protected CharSequence getDefaultChoice(Object selected)
{
return "<option selected=\"selected\" value=\"\">Choose One</option>";
}
You can use
getLocalizer().getString("yourpage.dropdownchoice.defaultvalue", this)
for your different languages.
Warren
-----Original Message-----
From: Gatos [mailto:[email protected]]
Sent: Thursday, August 27, 2009 5:46 AM
To: [email protected]
Subject: Choose one
After I choose something in DropDownChoice then 'Choose one' item is
removed from the list.
If I will try to use "setNullValid(true)" then 'Choose one' string is
replaced with '' (emptry string).
How is it possible to display 'Choose one' if another item has been
selected?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]