Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TagAttributeException


    super(config);
        TagAttribute type = this.getAttribute("type");
    this.binding = this.getAttribute("binding");
    if (type != null) {
      if (!type.isLiteral()) {
        throw new TagAttributeException(type,
            "Must be a literal class name of type PhaseListener");
      } else {
        // test it out
        try {
          ReflectionUtil.forName(type.getValue());
        } catch (ClassNotFoundException e) {
          throw new TagAttributeException(type,
              "Couldn't qualify PhaseListener", e);
        }
      }
      this.listenerType = type.getValue();
    } else {
View Full Code Here


        super(config);
        this.binding = this.getAttribute("binding");
        TagAttribute type = this.getAttribute("type");
        if (type != null) {
      if (!type.isLiteral()) {
        throw new TagAttributeException(type,
            "Must be a literal class name of type ActionListener");
      } else {
        // test it out
        try {
          ReflectionUtil.forName(type.getValue());
        } catch (ClassNotFoundException e) {
          throw new TagAttributeException(type,
              "Couldn't qualify ActionListener", e);
        }
      }
      this.listenerType = type.getValue();
    } else {
View Full Code Here

    super(config);
    this.binding = this.getAttribute("binding");
        TagAttribute type = this.getAttribute("type");
    if (type != null) {
      if (!type.isLiteral()) {
        throw new TagAttributeException(type,
            "Must be a literal class name of type ValueChangeListener");
      } else {
        // test it out
        try {
          ReflectionUtil.forName(type.getValue());
        } catch (ClassNotFoundException e) {
          throw new TagAttributeException(type,
              "Couldn't qualify ValueChangeListener", e);
        }
      }
      this.listenerType = type.getValue();
    } else {
View Full Code Here

            {
                method.invoke(instance, this.value);
            }
            catch (InvocationTargetException e)
            {
                throw new TagAttributeException(this.attribute, e.getCause());
            }
            catch (Exception e)
            {
                throw new TagAttributeException(this.attribute, e);
            }
        }
View Full Code Here

            {
                method.invoke(instance, this.value);
            }
            catch (InvocationTargetException e)
            {
                throw new TagAttributeException(this.attribute, e.getCause());
            }
            catch (Exception e)
            {
                throw new TagAttributeException(this.attribute, e);
            }
        }
View Full Code Here

                {
                    c.setDestType(org.apache.myfaces.commons.util.ClassUtils.classForName(this.destType.getValue()));
                }
                catch (ClassNotFoundException e)
                {
                    throw new TagAttributeException(this.destType,"Cannot find class assigned: "+this.destType.getValue(),e);
                }
            }
            else
            {
                c.setValueExpression("destType", this.destType.getValueExpression(ctx, Object.class));
View Full Code Here

    super(config);
    _assignTo = getAttribute("assignTo");
    _converter = getAttribute("converter");
    if(null != _assignTo) {
            if (_assignTo.isLiteral()) {
                throw new TagAttributeException(this.tag, this._assignTo, Messages.getMessage(Messages.MUST_BE_EXPRESSION_ERROR));
            }

    }
    // TODO Auto-generated constructor stub
  }
View Full Code Here

        super(config);
        this.binding = this.getAttribute("binding");
        this.type = this.getRequiredAttribute("type");
        if (type != null) {
            if (!type.isLiteral()) {
                throw new TagAttributeException(this.tag, this.type, Messages.getMessage(Messages.MUST_BE_LITERAL_ERROR));
            }
            try {
                this.listenerType = Class.forName(type.getValue());
            } catch (Exception e) {
                throw new TagAttributeException(this.tag, this.type, e);
            }
        }
    }
View Full Code Here

                }
                if (listener == null) {
                    try {
                        listener = (AjaxListener) listenerType.newInstance();
                    } catch (Exception e) {
                        throw new TagAttributeException(this.tag, this.type, e.getCause());
                    }
                    if (ve != null) {
                        ve.setValue(ctx, ve);
                    }
                }
View Full Code Here

            {
                method.invoke(instance, this.value);
            }
            catch (InvocationTargetException e)
            {
                throw new TagAttributeException(this.attribute, e.getCause());
            }
            catch (Exception e)
            {
                throw new TagAttributeException(this.attribute, e);
            }
        }
View Full Code Here

TOP

Related Classes of com.sun.facelets.tag.TagAttributeException

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.