{ // add an empty entry
HtmlTag option = w.startTag("option");
option.addAttributeNoCheck("value", "", false);
option.addAttribute("selected", ObjectUtils.isEmpty(current));
option.beginBody("");
option.endTag(true);
}
for (OptionEntry entry : options)
{
Object value = entry.getValue();
boolean isCurrent = ObjectUtils.compareEqual(current, value);