Package org.zkoss.zk.ui

Examples of org.zkoss.zk.ui.UiException


      _savable = true;
    } else if ("none".equals(access)) {
      _loadable = false;
      _savable = false;
    } else {//unknow access mode
      throw new UiException("Unknown DataBinder access mode. Should be \"both\", \"load\", \"save\", or \"none\": "+access);
    }
  }
View Full Code Here


      if (!dispatch(out, page, params, mode, true))
        Servlets.include(_ctx, _request,
          HttpBufferedResponse.getInstance(_response, out),
          page, params, mode);
    } catch (ServletException ex) {
      throw new UiException(ex);
    }
  }
View Full Code Here

      if (!dispatch(out, page, params, mode, false))
        Servlets.forward(_ctx, _request,
          HttpBufferedResponse.getInstance(_response, out),
          page, params, mode);
    } catch (ServletException ex) {
      throw new UiException(ex);
    }
  }
View Full Code Here

          Locators.getDefault());
        return "~." + path.substring(ClassWebResource.PATH_PREFIX.length());
      }
      return Servlets.locate(_ctx, _request, path, null);
    } catch (ServletException ex) {
      throw new UiException(ex);
    }
  }
View Full Code Here

  public String encodeURL(String uri) {
    try {
      return Encodes.encodeURL(_ctx, _request, _response, uri);
    } catch (ServletException ex) {
      throw new UiException(ex);
    }
  }
View Full Code Here

    //Note: we have to go thru UiFactory (so user can override it)
    uri = toAbsoluteURI(uri, false);
    final PageDefinition pagedef = ((WebAppCtrl)getDesktop().getWebApp()).
      getUiFactory().getPageDefinition(newRequestInfo(uri), uri);
    if (pagedef == null)
      throw new UiException("Page not found: "+uri);
    return pagedef;
  }
View Full Code Here

              break;
            }
            if (_proc == null || _ceased != null)
              break;
            if (!isAlive())
              throw new UiException("The event processing thread was aborted");

            log.warning("The event processing takes more than "+
              ((System.currentTimeMillis()-begt)/1000)+" seconds: "+proc);
          }
        }
      }
    } catch (InterruptedException ex) {
      throw new UiException(ex);
    } finally {
      //Note: newEventThreadCleanups was called in run(), i.e.,
      //in the event thread

      //_evtThdCleanups is null if //1) no listener;
View Full Code Here

  public Component getComponentCollectionOwner(Component comp) {
    if (comp instanceof Comboitem) {
      final Comboitem item = (Comboitem) comp;
      return item.getParent();
    } else {
      throw new UiException(
          "Unsupported type for ComboitemCollectionItem: " + comp);
    }
  }
View Full Code Here

  public ListModel getModelByOwner(Component comp) {
    if (comp instanceof Combobox) {
      final Combobox cbbox = (Combobox) comp;
      return cbbox.getModel();
    } else {
      throw new UiException(
          "Unsupported type for ComboitemCollectionItem: " + comp);
    }
  }
View Full Code Here

  public Component getComponentAtIndexByOwner(Component comp, int index) {
    if (comp instanceof Combobox) {
      return ((Combobox)comp).getItemAtIndex(index);
    } else {
      throw new UiException(
          "Unsupported type for ComboitemCollectionItem: " + comp);
    }
  }
View Full Code Here

TOP

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

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.