Package com.liferay.faces.alloy.component.inputfile.internal

Examples of com.liferay.faces.alloy.component.inputfile.internal.ProgressTableTemplate


      // and write it to the response.
      String clientId = uiComponent.getClientId(facesContext);
      Locale locale = facesContext.getViewRoot().getLocale();

      if (inputFile.isShowProgress()) {
        ProgressTableTemplate progressTableTemplate = getProgressTableTemplate(facesContext);
        String progressTableHTML = progressTableTemplate.format(locale, clientId, inputFile.isAuto());
        responseWriter.write(progressTableHTML);
      }

      // Otherwise, delegate writing to the delegate renderer. Note that this effectively a no-op with Mojarra and
      // MyFaces, since they both delay writing of the entire <input type="file"...> ... </input> element until
View Full Code Here


      FacesContext startupFacesContext = FacesContext.getCurrentInstance();
      ExternalContext externalContext = startupFacesContext.getExternalContext();
      Map<String, Object> applicationMap = externalContext.getApplicationMap();
      boolean minified = startupFacesContext.isProjectStage(ProjectStage.Production);
      applicationMap.put(PreviewTableTemplate.class.getName(), new PreviewTableTemplate(minified));
      applicationMap.put(ProgressTableTemplate.class.getName(), new ProgressTableTemplate(minified));
    }
    catch (Exception e) {
      logger.error(e);
    }
  }
View Full Code Here

TOP

Related Classes of com.liferay.faces.alloy.component.inputfile.internal.ProgressTableTemplate

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.