Package com.liferay.faces.util.js

Examples of com.liferay.faces.util.js.JavaScriptArray


    ResponseWriter responseWriter = facesContext.getResponseWriter();
    InputFile inputFile = (InputFile) uiComponent;
    String clientId = inputFile.getClientId(facesContext);

    // Determine the valid content-types and maximum file size from the validator (if specified).
    JavaScriptArray contentTypes = new JavaScriptArray();
    JavaScriptFragment alloyNamespace = new JavaScriptFragment("A");
    long maxFileSize = Long.MAX_VALUE;
    InputFileValidator inputFileValidator = getInputFileValidator(inputFile);

    if (inputFileValidator != null) {
      String validContentTypes = inputFileValidator.getContentTypes();

      if (validContentTypes != null) {
        contentTypes = new JavaScriptArray(validContentTypes.split(","));
      }

      maxFileSize = inputFileValidator.getMaxFileSize();
    }
View Full Code Here

TOP

Related Classes of com.liferay.faces.util.js.JavaScriptArray

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.