When I first load a page, the default option on a dropdownchoice is “Choose One”. Is there a way to keep it in the dropdown, even when I have selected a choice?
(In case I would like to put nothing later)
When I first load a page, the default option on a dropdownchoice is Choose
Share
You need to use the
DropDownChoice.setNullValid()method. From the javadoc:If you want to keep the “Choose One” text with NullValid = true you can use a line similar to the following one in your Application.properties file: