Package javax.faces.el

Examples of javax.faces.el.EvaluationException


      return _expression.invoke(context.getELContext(), params);
    }
    // Convert EL exceptions into EvaluationExceptions
    catch (ELException ee)
    {
      throw new EvaluationException(ee.getMessage(), ee.getCause());
    }
  }
View Full Code Here


      return _ve.getValue(facesContext.getELContext());
    }
    // Convert EL exceptions into EvaluationExceptions
    catch (ELException ee)
    {
      throw new EvaluationException(ee.getMessage(), ee.getCause());
    }   
  }
View Full Code Here

      _ve.setValue(facesContext.getELContext(), object);
    }
    // Convert EL exceptions into EvaluationExceptions
    catch (ELException ee)
    {
      throw new EvaluationException(ee.getMessage(), ee.getCause());
    }   
  }
View Full Code Here

      return _ve.isReadOnly(facesContext.getELContext());
    }
    // Convert EL exceptions into EvaluationExceptions
    catch (ELException ee)
    {
      throw new EvaluationException(ee.getMessage(), ee.getCause());
    }   
  }
View Full Code Here

      return _ve.getType(facesContext.getELContext());
    }
    // Convert EL exceptions into EvaluationExceptions
    catch (ELException ee)
    {
      throw new EvaluationException(ee.getMessage(), ee.getCause());
    }
  }
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

            {
                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

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

            throw new ReferenceSyntaxException("Must be array or List. Bean: "
                + base.getClass().getName() + ", index " + index);
        }
        catch (RuntimeException e)
        {
            throw new EvaluationException("Exception getting value for index " + index
                + " of bean "
                + base != null ? base.getClass().getName() : "NULL", 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.