The code...
//create calendar
List<String> days = DateTime.getDaysListForward(2, 4);
//add quantity select list
form.add(new DropDownChoice("arrivalDate", days, new IChoiceRenderer()
{
protected String getDefaultChoice(final Object selected)
{
return ""; //get rid of "Choose One" default
}
public String getDisplayValue(Object object)
{
return object.toString();
}
public String getIdValue(Object object, int index)
{
return object.toString();
}
}));
When rendered...I still get the "Choose One" option first. Did I lose too much sleep last night...what did I miss?
- [Wicket-user] can't get rid of "Choose One" in ... Vincent Jenks
- Re: [Wicket-user] can't get rid of "Choose One&... Igor Vaynberg
- Re: [Wicket-user] can't get rid of "Choose ... Vincent Jenks
- Re: [Wicket-user] can't get rid of "Cho... Igor Vaynberg
- Re: [Wicket-user] can't get rid of "... Johan Compagner
- Re: [Wicket-user] can't get rid of ... Vincent Jenks
- Re: [Wicket-user] can't get rid... Martijn Dashorst