public class ListItemRenderer extends XULRenderer {
@Override
public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
super.encodeBegin(facesContext, component);
ResponseWriter responseWriter = facesContext.getResponseWriter();
responseWriter.startElement("listitem", component);
StringBuffer clientId = new StringBuffer(component.getClientId(facesContext));
clientId.append(":");
clientId.append(component.getAttributes().get("rowId"));
responseWriter.writeAttribute("id",clientId.toString(), "id");
renderAttributes(facesContext,component,(List) component.getAttributes().get("annotatedAttributes"));
}