public void encodeBegin(FacesContext context, UIComponent component) throws IOException
{
String label = (String)component.getAttributes().get("label");
UIInputSelect uiInputSelect = (UIInputSelect)component;
List<?> lDm = (List<?>)component.getAttributes().get("value");
DataModel dm = new ListDataModel(lDm);
uiInputSelect.setValue(dm);
logger.debug("uiInputSelect()="+uiInputSelect.getRowCount());
ResponseWriter writer = context.getResponseWriter();
writer.startElement("li", component);
writer.write(label);
writer.startElement("span", component);