Friday, June 1, 2012

Removing the "Choose One" Option From Wicket's DropDownChoice

It's a bit of a hack how to do this. Basically it involves triggering some convention by:
  • Extend the DropDownChoice class
  • Add the following code to override a method:
@Override
protected CharSequence getDefaultChoice(Object arg0) {
return "";
}

1 comment: