public class FileUploadRenderer extends org.primefaces.component.fileupload.FileUploadRenderer {
@Override
public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
FileUpload fileUpload = (FileUpload) component;
String clientId = fileUpload.getClientId(context);
String style = fileUpload.getStyle();
String styleClass = fileUpload.getStyleClass();
styleClass = (styleClass == null) ? FileUpload.MOBILE_CONTAINER_CLASS : FileUpload.MOBILE_CONTAINER_CLASS + " " + styleClass;
if(fileUpload.isDisabled()) {
styleClass = styleClass + " ui-state-disabled";
}
writer.startElement("div", fileUpload);
writer.writeAttribute("id", this, null);