Package org.omnifaces.resourcehandler

Examples of org.omnifaces.resourcehandler.GraphicResource


      if (resource == null) {
        return RES_NOT_FOUND;
      }

      if (dataURI && resource.getContentType().startsWith("image")) {
        resource = new GraphicResource(resource.getInputStream(), resource.getContentType());
      }
    }
    else {
      ValueExpression value = getValueExpression("value");

      if (value == null) {
        throw new IllegalArgumentException(ERROR_MISSING_VALUE);
      }

      if (dataURI) {
        resource = new GraphicResource(value.getValue(context.getELContext()), null);
      }
      else {
        resource = GraphicResource.create(context, value, getAttributes().get("lastModified"));
      }
    }
View Full Code Here

TOP

Related Classes of org.omnifaces.resourcehandler.GraphicResource

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.