Package javax.el

Examples of javax.el.ELException


        {
            this.txt.apply(ctx.getExpressionFactory(), ctx).write(writer, ctx);
        }
        catch (IOException e)
        {
            throw new ELException(this.alias + ": " + e.getMessage(), e.getCause());
        }
        return writer.toString();
    }
View Full Code Here


                if (ExternalSpecifications.isUnifiedELAvailable() && this.value.contains("("))
                {
                    // if we don't throw this exception here, another ELException will be
                    // thrown later, because #{cc.attrs.method(param)} will not work as a
                    // ValueExpression pointing to a MethodExpression
                    throw new ELException("Cannot add parameters to a MethodExpression "
                            + "pointing to cc.attrs");
                }
               
                ValueExpression valueExpr = this.getValueExpression(ctx, Object.class);
                methodExpression = new ValueExpressionMethodExpression(valueExpr);
View Full Code Here

        Method m = ReflectionUtil.getMethod(t.base, t.property, paramTypes);
        Object result = null;
        try {
            result = m.invoke(t.base, (Object[]) paramValues);
        } catch (IllegalAccessException iae) {
            throw new ELException(iae);
        } catch (InvocationTargetException ite) {
            throw new ELException(ite.getCause());
        }
        return result;
    }
View Full Code Here

            iter = toIterator((Enumeration)obj);
        }
        else if (obj instanceof Map) {
            iter = ((Map)obj).entrySet().iterator();
        } else {
            throw new ELException("Don't know how to iterate over supplied "
                                  + "items in forEach");
        }
        return iter;
    }
View Full Code Here

                    new IteratedExpression(deferredExpression, getDelims());
            }
            return new IteratedValueExpression(iteratedExpression, index+begin);
        }

        throw new ELException("Don't know how to iterate over supplied "
                              + "items in forEach");
    }
View Full Code Here

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

    }
View Full Code Here

   * @see javax.el.ValueExpression#setValue(javax.el.ELContext,
   *      java.lang.Object)
   */
  @Override
  public void setValue(ELContext context, Object value) {
    throw new ELException(Messages.getMessage(Messages.EVENT_IS_READ_ONLY));
  }
View Full Code Here

        for (Property property : properties) {
          property.set(expressions, elContext, params);
        }
        object.put("params", params);
      } catch (JSONException je) {
        throw new ELException(je);
      }

      return object;
    }
View Full Code Here

        try {
          if (value != null) {
            object.put(name, value);
          }
        } catch (JSONException e) {
          throw new ELException("Error parsing property \"" + name + '\"', e);
        }
      }
View Full Code Here

                } catch (ELException e) {
                    if (this.tags.size() > 0) {
                        throw new TagException((Tag) this.tags.peek(), e
                                .getMessage());
                    } else {
                        throw new ELException(this.alias + ": "
                                + e.getMessage(), e.getCause());
                    }
                }
            }
View Full Code Here

TOP

Related Classes of javax.el.ELException

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.