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

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


      super.encodeMarkupEnd(facesContext, uiComponent, delegationResponseWriter);

      // Format the preview-table.html template and write it to the response.
      Locale locale = facesContext.getViewRoot().getLocale();
      String clientId = uiComponent.getClientId(facesContext);
      PreviewTableTemplate previewTableTemplate = getPreviewTableTemplate(facesContext);
      String previewTableHTML = previewTableTemplate.format(locale, clientId, false);
      responseWriter.write(previewTableHTML);

      // Finish encoding of the outermost <div> element.
      responseWriter.endElement(StringPool.DIV);
    }
View Full Code Here


    try {
      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.PreviewTableTemplate

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.