Package javax.faces.el

Examples of javax.faces.el.EvaluationException


    try {
      return expression.getValue(context.getELContext());
    } catch(javax.el.PropertyNotFoundException e) {
      throw new PropertyNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
  }
View Full Code Here


    try {
      return expression.isReadOnly(context.getELContext());
    } catch(javax.el.PropertyNotFoundException e) {
      throw new PropertyNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
  }
View Full Code Here

    try {
      expression.setValue(context.getELContext(), value);
    } catch(javax.el.PropertyNotFoundException e) {
      throw new PropertyNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
   
  }
View Full Code Here

      UIComponent uiComponent = facesContext.getViewRoot().findComponent(
        _componentId);
      if (null != uiComponent && uiComponent instanceof AjaxSupport) {
    _component = (AjaxSupport) uiComponent;
      } else {
    throw new EvaluationException(Messages.getMessage(
      Messages.COMPONENT_NOT_FOUND, _componentId));
      }

  }
View Full Code Here

         * @see javax.faces.el.ValueBinding#setValue(javax.faces.context.FacesContext,
         *      java.lang.Object)
         */
    public void setValue(FacesContext facesContext, Object value)
      throws EvaluationException, PropertyNotFoundException {
  throw new EvaluationException(Messages
    .getMessage(Messages.EVENT_IS_READ_ONLY));

    }
View Full Code Here

            {
                msg = "Cannot set value for expression '"
                    + _expressionString + "' to a new value of type "
                    + newValue.getClass().getName();
            }
            throw new EvaluationException(msg, e);
        }
    }
View Full Code Here

            throw new PropertyNotFoundException(
                "Expression: '" + _expressionString + "'", e);
        }
        catch (Exception e)
        {
            throw new EvaluationException(
                    "Cannot get value for expression '" + _expressionString
                    + "'", e);
        }
    }
View Full Code Here

        if (tmp.charAt(0) == '"') {
            index = tmp.indexOf('"', 1);

            if (index < 0) {
                throw new EvaluationException(tmp);
            }
            return tmp.substring(1, index);
        }
        if (tmp.charAt(0) == '\'') {
            index = tmp.indexOf('\'', 1);

            if (index < 0) {
                throw new EvaluationException(tmp);
            }
            return tmp.substring(1, index);
        }

        index = tmp.indexOf(']');

        if (index < 0) {
            throw new EvaluationException(tmp);
        }

        return tmp.substring(1, index);
    }
View Full Code Here

    try {
      return methodExpression.getMethodInfo(facesContext.getELContext()).getReturnType();
    } catch (javax.el.MethodNotFoundException e) {
      throw new javax.faces.el.MethodNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
  }
View Full Code Here

    try {
      return methodExpression.invoke(facesContext.getELContext(), params);
    } catch (javax.el.MethodNotFoundException e) {
      throw new javax.faces.el.MethodNotFoundException(e);
    } catch (ELException e) {
      throw new EvaluationException(e);
    }
  }
View Full Code Here

TOP

Related Classes of javax.faces.el.EvaluationException

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.