Examples of UIException


Examples of org.araneaframework.jsp.UiException

  protected int before(Writer out) throws Exception {
    int result = super.before(out);
       
    if (contextWidgetId == null)
      throw new UiException("'eventButton' tag can only be used in a context widget!");
       
    updateRegionNames = UiUpdateRegionUtil.getUpdateRegionNames(pageContext, updateRegions, globalUpdateRegions);
   
    return result;
  }
View Full Code Here

Examples of org.araneaframework.jsp.UiException

   * Asserts that associated control is of given type. If the
   * condition does not hold, throws exception.
   */
  protected void assertControlType(String type) throws JspException {
    if (!controlViewModel.getControlType().equals(type))
      throw new UiException("Control of type '" + type + "' expected in form element '" + id + "' instead of '" + controlViewModel.getControlType() + "'");
  }
View Full Code Here

Examples of org.araneaframework.jsp.UiException

   * Asserts that associated control is of given type. If the
   * condition does not hold, throws exception.
   */
  protected void assertControlType(String type) throws JspException {
    if (!controlViewModel.getControlType().equals(type))
      throw new UiException("Control of type '" + type + "' expected in form element '" + id + "' instead of '" + controlViewModel.getControlType() + "'");
  }
View Full Code Here

Examples of org.araneaframework.jsp.UiException

   *
   * @throw UiException if both value and expression are specified
   */ 
  public static void writeScriptString_rt(Writer out, String value, String expression) throws IOException, UiException {
    if (value != null && expression != null)
      throw new UiException("String value and run-time expression should not be specified at the same time");
   
    if (expression != null) {
      writeEscaped(out, expression);
    }
    else {
View Full Code Here

Examples of org.araneaframework.jsp.UiException

  public static Object readAttribute(PageContext pageContext, String key, int scope) throws JspException {
    Object value = pageContext.getAttribute(key, scope);
    if (value == null) {
      String errMsg = (String)attributeErrorMap.get(key);
      if (errMsg == null) errMsg = "UNKNOWN";
      throw new UiException("Missing attribute '" + key + "' in scope #" + scope + ". Error message : " + errMsg);
    }
    else
      return value;
  }
View Full Code Here

Examples of org.araneaframework.jsp.UiException

  protected int before(Writer out) throws Exception {
    int result = super.before(out);
   
    if (contextWidgetId == null)
      throw new UiException("'listRow(Link)Button' tags can only be used in a context widget!");
   
    eventParam = (String) readAttribute(UiListRowsTag.ROW_REQUEST_ID_KEY_REQUEST, PageContext.REQUEST_SCOPE);
   
    updateRegionNames = UiUpdateRegionUtil.getUpdateRegionNames(pageContext, updateRegions, globalUpdateRegions);
   
View Full Code Here

Examples of org.araneaframework.jsp.UiException

  public void setMethod(String method) throws JspException {
    this.method = (String)evaluateNotNull("method", method, String.class);
   
    if (!this.method.equals(GET_METHOD) &&
        !this.method.equals(POST_METHOD))
          throw new UiException("Wrong form method value '" + method + "'");   
  }
View Full Code Here

Examples of org.araneaframework.jsp.UiException

  protected int before(Writer out) throws Exception {
    super.before(out);
   
    // Error check
    if (getAttribute(ID_KEY_REQUEST, PageContext.REQUEST_SCOPE) != null)
      throw new UiException("System form cannot be nested");                   
     
    // Compute id
    id = id == null ? UiSystemFormTag.generateId(pageContext) : id;
   
    pushAttribute(ID_KEY_REQUEST, id, PageContext.REQUEST_SCOPE);   
View Full Code Here

Examples of org.araneaframework.jsp.UiException

 
  protected int before(Writer out) throws Exception {
    super.before(out);
   
    if (id == null && globalId == null)
      throw new UiException("'id' or 'globalId' is required!");
   
    String contextWidgetId = UiWidgetUtil.getContextWidgetFullId(pageContext);
   
    if (globalId == null)
      globalId = (contextWidgetId.length() > 0 ? contextWidgetId + "." + id : id);     
View Full Code Here

Examples of org.araneaframework.jsp.UiException

    else if (REQUEST_SCOPE.equals(scopeString))
      this.scope = PageContext.REQUEST_SCOPE;
    else if (PAGE_SCOPE.equals(scopeString))
      this.scope = PageContext.PAGE_SCOPE;
    else
      throw new UiException("Wrong debug scope value '" + this.scope + "'");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.