Examples of EvaluationException


Examples of javax.faces.el.EvaluationException

         * @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

Examples of javax.faces.el.EvaluationException

            {
                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

Examples of javax.faces.el.EvaluationException

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

Examples of javax.faces.el.EvaluationException

        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

Examples of javax.faces.el.EvaluationException

    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

Examples of javax.faces.el.EvaluationException

    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

Examples of javax.faces.el.EvaluationException

        catch (RuntimeException e)
        {
            if(log.isDebugEnabled())
              log.debug("Exception while retrieving property; base : "+base.getClass().getName()+", property : "+property,e);

            throw new EvaluationException("Exception getting value of property " + property
                + " of base of type : "
                + base.getClass().getName(), e);
        }
    }
View Full Code Here

Examples of javax.faces.el.EvaluationException

        catch (RuntimeException e)
        {
            if(log.isDebugEnabled())
                log.debug("Exception while getting property; base with class: "+base.getClass().getName()+", index : "+index,e);

            throw new EvaluationException("Exception getting value for index " + index
                + " of bean "
                + base != null ? base.getClass().getName() : "NULL", e);
        }
    }
View Full Code Here

Examples of javax.faces.el.EvaluationException

        catch (RuntimeException e)
        {
            if(log.isDebugEnabled())
                log.debug("Exception while setting property; base : "+base.getClass().getName()+", property : "+property,e);

            throw new EvaluationException("Exception setting property " + property
                + " of base with class "
                + base.getClass().getName(), e);
        }
    }
View Full Code Here

Examples of javax.faces.el.EvaluationException

            {
                throw new PropertyNotFoundException("Base with class : "
                    + base.getClass().getName() + ", index " + index, e);
            }

            throw new EvaluationException(
                "Bean must be array or List. Base with class: "
                + base.getClass().getName() + ", index " + index);
        }
        catch (PropertyNotFoundException e) {
            throw e;
        }
        catch (RuntimeException e)
        {
            throw new EvaluationException("Exception setting value of index " + index + " of bean "
                + base.getClass().getName(), e);
        }
    }
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.