Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.ComponentNotFoundException


    final Desktop desktop;
    synchronized (_desktops) {
      desktop = (Desktop)_desktops.get(desktopId);
    }
    if (desktop == null)
      throw new ComponentNotFoundException("Desktop not found: "+desktopId);
    return desktop;
  }
View Full Code Here


          final Object v =
            Executions.evaluate(comp, path, Object.class);
          if (v instanceof Component) {
            target = (Component)v;
          } else if (v == null) {
            throw new ComponentNotFoundException("EL evaluated to null: "+path);
          } else {
            path = Objects.toString(v);
          }
        }
View Full Code Here

  //@Override
  public Component getFellow(String id) throws ComponentNotFoundException {
    final Component comp = getFellowIfAny(id);
    if (comp == null)
      throw new ComponentNotFoundException(id);
    return comp;
  }
View Full Code Here

  public Page getPage(String pageId) {
    //Spec: we allow user to access this method concurrently
    final Page page = getPageIfAny(pageId);
    if (page == null)
      throw new ComponentNotFoundException("Page not found: "+pageId);
    return page;
  }
View Full Code Here

    return _comps.values();
  }
  public Component getComponentByUuid(String uuid) {
    final Component comp = (Component)_comps.get(uuid);
    if (comp == null)
      throw new ComponentNotFoundException("Component not found: "+uuid);
    return comp;
  }
View Full Code Here

      if (_comp != null) {
        _page = _comp.getPage();
      } else {
        _page = _desktop.getPageIfAny(_uuid); //it could be page UUID
        if (_page == null)
          throw new ComponentNotFoundException("Component not found: "+_uuid);
      }
      _uuid = null;
    }
  }
View Full Code Here

TOP

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

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.