public static final String DEF_PROGRESS_CLASS = "o_progress_bar_uploaded";
@Override
public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
super.encodeBegin(context, component);
ProgressBar progressBar = (ProgressBar) component;
ResponseWriter writer = context.getResponseWriter();
final String clientId = progressBar.getClientId(context);
writer.startElement("div", progressBar);
Rendering.writeIdAttribute(context, progressBar);
Rendering.writeStyleAndClassAttributes(writer, progressBar.getStyle(), progressBar.getStyleClass(), "o_progress_bar");
//Rendering.writeStandardEvents(writer, progressBar);
writeUploadedDiv(context, progressBar, writer);
writeNotUploadedDiv(context, progressBar, writer);