Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TagAttribute


        return UILibrary.Namespace.equals(ns)
                && (CompositionHandler.Name.equals(name) || ComponentRefHandler.Name.equals(name));
    }

    private String[] determineQName(Tag tag) {
        TagAttribute attr = tag.getAttributes().get("jsfc");
        if (attr != null) {
            if (log.isLoggable(Level.FINE)) {
                log.fine(attr + " JSF Facelet Compile Directive Found");
            }
            String value = attr.getValue();
            String namespace, localName;
            int c = value.indexOf(':');
            if (c == -1) {
                namespace = this.namespaceManager.getNamespace("");
                localName = value;
View Full Code Here


            return new String[] { tag.getNamespace(), tag.getLocalName() };
        }
    }

    private Tag trimJSFCAttribute(Tag tag) {
        TagAttribute attr = tag.getAttributes().get("jsfc");
        if (attr != null) {
            TagAttribute[] oa = tag.getAttributes().getAll();
            TagAttribute[] na = new TagAttribute[oa.length - 1];
            int p = 0;
            for (int i = 0; i < oa.length; i++) {
View Full Code Here

        protected TagAttributes createAttributes(Attributes attrs) {
            int len = attrs.getLength();
            TagAttribute[] ta = new TagAttribute[len];
            for (int i = 0; i < len; i++) {
                ta[i] = new TagAttribute(this.createLocation(),
                        attrs.getURI(i), attrs.getLocalName(i), attrs
                                .getQName(i), attrs.getValue(i));
            }
            return new TagAttributes(ta);
        }
View Full Code Here

        return UILibrary.Namespace.equals(ns)
                && (CompositionHandler.Name.equals(name) || ComponentRefHandler.Name.equals(name));
    }

    private String[] determineQName(Tag tag) {
        TagAttribute attr = tag.getAttributes().get("jsfc");
        if (attr != null) {
            if (log.isLoggable(Level.FINE)) {
                log.fine(attr + " JSF Facelet Compile Directive Found");
            }
            String value = attr.getValue();
            String namespace, localName;
            int c = value.indexOf(':');
            if (c == -1) {
                namespace = this.namespaceManager.getNamespace("");
                localName = value;
View Full Code Here

            return new String[] { tag.getNamespace(), tag.getLocalName() };
        }
    }

    private Tag trimJSFCAttribute(Tag tag) {
        TagAttribute attr = tag.getAttributes().get("jsfc");
        if (attr != null) {
            TagAttribute[] oa = tag.getAttributes().getAll();
            TagAttribute[] na = new TagAttribute[oa.length - 1];
            int p = 0;
            for (int i = 0; i < oa.length; i++) {
View Full Code Here

    /**
     * @param config
     */
    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

  private final String listenerType;

  public ValueChangeListenerHandler(TagConfig config) {
    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 {
      this.listenerType = null;
    }
  }
View Full Code Here

            if ("form".equals(n)) {
                return new Tag(tag.getLocation(), HtmlLibrary.Namespace,
                        "form", tag.getQName(), tag.getAttributes());
            }
            if ("input".equals(n)) {
                TagAttribute attr = tag.getAttributes().get("type");
                if (attr != null) {
                    String t = attr.getValue();
                    TagAttributes na = removeType(tag.getAttributes());
                    if ("text".equals(t)) {
                        return new Tag(tag.getLocation(),
                                HtmlLibrary.Namespace, "inputText", tag
                                        .getQName(), na);
View Full Code Here

  private final String listenerType;

  public PhaseListenerHandler(TagConfig config) {
    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 {
      this.listenerType = null;
    }
  }
View Full Code Here

     * @param config
     */
    public ActionListenerHandler(TagConfig config) {
        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 {
      this.listenerType = null;
    }
    }
View Full Code Here

TOP

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

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.