if (!(component instanceof UIFileInput)) {
LOG.error("Wrong type: Need " + UIFileInput.class.getName() + ", but was " + component.getClass().getName());
return;
}
UIFileInput input = (UIFileInput) component;
String clientId = input.getClientId(facesContext);
TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);
writer.startElement(HtmlElements.INPUT, input);
writer.writeAttribute(HtmlAttributes.TYPE, HtmlInputTypes.FILE, false);
writer.writeClassAttribute(Classes.create(input));
HtmlRendererUtils.writeDataAttributes(facesContext, writer, input);
Style style = new Style(facesContext, input);
writer.writeStyleAttribute(style);
writer.writeNameAttribute(clientId);
writer.writeIdAttribute(clientId);
writer.writeAttribute(HtmlAttributes.READONLY, ComponentUtils.getBooleanAttribute(input, Attributes.DISABLED));
Integer tabIndex = input.getTabIndex();
if (tabIndex != null) {
writer.writeAttribute(HtmlAttributes.TABINDEX, tabIndex);
}
HtmlRendererUtils.renderTip(input, writer);
if (ClientProperties.getInstance(facesContext).getUserAgent().isMsie6()) {