Package javax.el

Examples of javax.el.ELException


            getDelims());
      }
      return new IteratedValueExpression(iteratedExpression, index);
    }

    throw new ELException("FOREACH_BAD_ITEMS: [" + o.getClass().getName() + "] is not iterable item. Only [List, Array, Collection, Enumeration, Map, String] are supported.");
  }
View Full Code Here


  } else if (obj instanceof Enumeration) {
      iter = toIterator((Enumeration) obj);
  } else if (obj instanceof Map) {
      iter = ((Map) obj).entrySet().iterator();
  } else {
      throw new ELException("Bad items");
  }
  return iter;
    }
View Full Code Here

            } else if (str == 0 && ('}' == c)) {
                return i - s + 1;
            }
            i++;
        }
        throw new ELException("EL Expression Unbalanced: ... "
                + new String(ca, s, i - s));
    }
View Full Code Here

        try {
            ELContext elContext = ELAdaptor.getELContext(context);
            txt.writeText(out, elContext);
            //out.writeText(txt.toString(elContext), null);
        } catch (ELException e) {
            throw new ELException(this.alias + ": " + e.getMessage(), e.getCause());
        } catch (Exception e) {
            throw new ELException(this.alias + ": " + e.getMessage(), 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());
                    }
                }
            }

            // KEEP THESE SEPARATE SO LOGIC DOESN'T GET FUBARED
        } else if (this.buffer.length() > 0) {
            String s = this.buffer.toString();
            if (s.trim().length() > 0) {
                if (child) {
                    s = trimRight(s);
                }
                if (s.length() > 0) {
                    try {
                        ELText txt = ELText.parse(s);
                        if (txt != null) {
                            if (txt.isLiteral()) {
                                this.children.add(new UILiteralTextHandler(txt
                                        .toString()));
                            } else {
                                this.children.add(new UITextHandler(this.alias,
                                        txt));
                            }
                        }
                    } 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

    public void encodeBegin(FacesContext context) throws IOException {
        ResponseWriter out = context.getResponseWriter();
        try {
            txt.write(out, ELAdaptor.getELContext(context));
        } catch (ELException e) {
            throw new ELException(this.alias + ": " + e.getMessage(), e.getCause());
        } catch (Exception e) {
            throw new ELException(this.alias + ": " + e.getMessage(), e);
        }
    }
View Full Code Here

            ELContext elContext = ELAdaptor.getELContext(context);
            String val = txt.toString(elContext);

            out.writeAttribute(attr, val, null);
        } catch (ELException e) {
            throw new ELException(this.alias + ": " + e.getMessage(), e.getCause());
        } catch (Exception e) {
            throw new ELException(this.alias + ": " + e.getMessage(), e);
        }
    }
View Full Code Here

    public String getText(FaceletContext ctx) {
        Writer writer = new FastWriter(this.length);
        try {
            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

            } else if (str == 0 && ('}' == c)) {
                return i - s + 1;
            }
            i++;
        }
        throw new ELException("EL Expression Unbalanced: ... "
                + new String(ca, s, i - s));
    }
View Full Code Here

      if (ve == null) {
        return this.target.resolveVariable(variable);
      }
      return ve;
    } catch (StackOverflowError e) {
      throw new ELException("Could not Resolve Variable [Overflow]: " + variable, e);
    }
  }
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.