if(!isWidgetSupported(protocol)) {
return;
}
OptionAttributes optionAttributes = (OptionAttributes)attributes;
// Render input element.
DOMOutputBuffer buffer = getCurrentBuffer(protocol);
optionElement = buffer.openStyledElement("option", attributes.getStyles());
if (optionAttributes.getValue() != null) {
optionElement.setAttribute("value", optionAttributes.getValue());
}
String selected = optionAttributes.getSelected();
if (selected != null && selected.equals("selected")) {
optionElement.setAttribute("selected", selected);
}
}