Package org.primefaces.component.fileupload

Examples of org.primefaces.component.fileupload.FileUpload


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);
View Full Code Here

TOP

Related Classes of org.primefaces.component.fileupload.FileUpload

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.