Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TagAttributeException


      {
        _method.invoke(instance, _params);
      }
      catch (InvocationTargetException e)
      {
        throw new TagAttributeException(_attribute, e.getCause());
      }
      catch (Exception e)
      {
        throw new TagAttributeException(_attribute, e);
      }
    }
View Full Code Here


        _method.invoke(instance,
                       new Object[]{new LegacyMethodBinding(expr)});
      }
      catch (InvocationTargetException e)
      {
        throw new TagAttributeException(_attribute, e.getCause());
      }
      catch (Exception e)
      {
        throw new TagAttributeException(_attribute, e);
      }
    }
View Full Code Here

    public InsertHandler(TagConfig config) {
        super(config);
        TagAttribute attr = this.getAttribute("name");
        if (attr != null) {
            if (!attr.isLiteral()) {
                throw new TagAttributeException(this.tag, attr, "Must be Literal");
            }
            this.name = attr.getValue();
        } else {
            this.name = null;
        }
View Full Code Here

     */
    public DefineHandler(TagConfig config) {
        super(config);
        TagAttribute attr = this.getRequiredAttribute("name");
        if (!attr.isLiteral()) {
            throw new TagAttributeException(this.tag, attr, "Must be Literal");
        }
        this.name = attr.getValue();
    }
View Full Code Here

      {
        _method.invoke(instance, _params);
      }
      catch (InvocationTargetException e)
      {
        throw new TagAttributeException(_attribute, e.getCause());
      }
      catch (Exception e)
      {
        throw new TagAttributeException(_attribute, e);
      }
    }
View Full Code Here

        _method.invoke(instance,
                       new Object[]{new LegacyMethodBinding(expr)});
      }
      catch (InvocationTargetException e)
      {
        throw new TagAttributeException(_attribute, e.getCause());
      }
      catch (Exception e)
      {
        throw new TagAttributeException(_attribute, e);
      }
    }
View Full Code Here

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

            } else {
                bundle = ResourceBundle
                        .getBundle(name, Locale.getDefault(), cl);
            }
        } catch (Exception e) {
            throw new TagAttributeException(this.tag, this.basename, e);
        }
        ResourceBundleMap map = new ResourceBundleMap(bundle);
        FacesContext faces = ctx.getFacesContext();
        faces.getExternalContext().getRequestMap().put(this.var.getValue(ctx),
                map);
View Full Code Here

                  c.setTimeZone((TimeZone) t);
              } else if (t instanceof String) {
                  TimeZone tz = TimeZone.getTimeZone((String) t);
                  c.setTimeZone(tz);
              } else {
                  throw new TagAttributeException(
                          this.tag,
                          this.timeZone,
                          "Illegal TimeZone, must evaluate to either a java.util.TimeZone or String, is type: "
                                  + t.getClass());
              }
View Full Code Here

    super(config);
    this.binding = this.getAttribute("binding");
    this.type = this.getAttribute("type");
    if (this.type != null) {
      if (!this.type.isLiteral()) {
        throw new TagAttributeException(this.type,
            "Must be a literal class name of type ValueChangeListener");
      } else {
        // test it out
        try {
          Class c = ReflectionUtil.forName(this.type.getValue());
        } catch (ClassNotFoundException e) {
          throw new TagAttributeException(this.type,
              "Couldn't qualify ValueChangeListener", e);
        }
      }
      this.listenerType = this.type.getValue();
    } else {
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.