Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.WebApp


public class ZkSecurityContextListener implements EventThreadInit, EventThreadCleanup, EventThreadResume {
  private SecurityContext _ctx;
  private final boolean _enabled; //whether event thread enabled

  public ZkSecurityContextListener() {
    final WebApp app = Executions.getCurrent().getDesktop().getWebApp();
    _enabled = app.getConfiguration().isEventThreadEnabled();
  }
View Full Code Here


        if (importer instanceof ExcelImporter) {
          URL url = null;
         
          if (_src.startsWith("/")) {// try to load by application
            // context.
            WebApp wapp = Executions.getCurrent().getDesktop().getWebApp();
            String path = wapp.getRealPath(_src);
            if (path != null) {
              File file = new File(path);
//              if (file.isDirectory())
//                throw new IllegalArgumentException("Your input source is a directory, not a vaild file");
              if (file.exists())
                url = file.toURI().toURL();
            } else
              url = wapp.getResource(_src);
          }
          if (url == null) {// try to load from class loader
            url = new ClassLocator().getResource(_src);
          }
          if (url == null) {// try to load from file
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.WebApp

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.