throw new NullPointerException();
}
if (!component.isRendered()) return;
InputText comp = (InputText)component;
ResponseWriter writer = context.getResponseWriter();
writer.startElement(Attributes.INPUT, component);
RendererUtils.writeAttribute(Attributes.ID, comp.getClientId(context), writer);
RendererUtils.writeAttribute(Attributes.STYLE_CLASS, comp.getStyleClass(), writer);
RendererUtils.writeAttribute(Attributes.XML_LANG, comp.getXmllang(), writer);
/* attribute name is not required. If is not set, name value equals component id */
if (comp.getName() == null) {
log.debug("getName is null");
comp.setName(comp.getClientId(context));
}
RendererUtils.writeAttribute(Attributes.NAME, comp.getName(), writer);
/* default value is false, write only if value of attribute emptyok is true */
if (comp.isEmptyok()) RendererUtils.writeAttribute(Attributes.EMPTY_OK, "true", writer);
RendererUtils.writeAttribute(Attributes.FORMAT, comp.getFormat(), writer);
RendererUtils.writeAttribute(Attributes.MAX_LENGTH, comp.getMaxlength(), writer);
RendererUtils.writeAttribute(Attributes.SIZE, comp.getSize(), writer);
RendererUtils.writeAttribute(Attributes.TABINDEX, comp.getTabindex(), writer);
RendererUtils.writeAttribute(Attributes.TITLE, comp.getTitle(), writer);
RendererUtils.writeAttribute(Attributes.VALUE, comp.getValue(), writer);
// value "text" is default, don't must be written
//RenderUtils.writeAttribute(Attributes.TYPE, "text", writer);
writer.endElement(Attributes.INPUT);