Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TagAttribute


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


  protected MetaRuleset createMetaRuleset(Class aClass) {
    MetaRuleset metaRuleset = super.createMetaRuleset(aClass);
    TagAttribute [] attrs = tag.getAttributes().getAll();
    for (int i = 0; i < attrs.length; i++) {
      TagAttribute attr = attrs[i];
      if (!attr.getLocalName().equals("rendered")) {
        metaRuleset.ignore(attr.getLocalName());
      }
    }
    return metaRuleset;
  }
View Full Code Here

      metaRuleset.ignore(Attributes.LABEL);
      return metaRuleset;
    } else {
      TagAttribute[] attrs = tag.getAttributes().getAll();
      for (int i = 0; i < attrs.length; i++) {
        TagAttribute attr = attrs[i];
        metaRuleset.ignore(attr.getLocalName());
      }
      return metaRuleset;
    }
  }
View Full Code Here

  protected MetaRuleset createMetaRuleset(Class aClass) {
    MetaRuleset metaRuleset = super.createMetaRuleset(aClass);
    TagAttribute [] attrs = tag.getAttributes().getAll();
    for (int i = 0; i < attrs.length; i++) {
      TagAttribute attr = attrs[i];
      if (!attr.getLocalName().equals("rendered")) {
        metaRuleset.ignore(attr.getLocalName());
      }
    }
    return metaRuleset;
  }
View Full Code Here

  protected MetaRuleset createSubComponentMetaRuleset(Class aClass) {
    MetaRuleset metaRuleset = super.createMetaRuleset(aClass);
    TagAttribute [] attrs = tag.getAttributes().getAll();
    for (int i = 0; i < attrs.length; i++) {
      TagAttribute attr = attrs[i];
      if (!(attr.getLocalName().equals(Attributes.CONVERTER)
          || attr.getLocalName().equals(Attributes.VALUE))) {
        metaRuleset.ignore(attr.getLocalName());
      }
    }
    return metaRuleset;
  }
View Full Code Here

  protected MetaRuleset createMetaRuleset(Class aClass) {
    MetaRuleset metaRuleset = super.createMetaRuleset(aClass);
    TagAttribute [] attrs = tag.getAttributes().getAll();
    for (int i = 0; i < attrs.length; i++) {
      TagAttribute attr = attrs[i];
      if (!attr.getLocalName().equals("rendered")) {
        metaRuleset.ignore(attr.getLocalName());
      }
    }
    return metaRuleset;
  }
View Full Code Here

    super(config);
  }
 
  protected MetaRuleset createMetaRuleset(Class type) {
    TagAttributes attributes = this.tag.getAttributes();
    TagAttribute attribute = attributes.get("value");
    if (attribute != null && attributes.get("expanded") != null) {
      TagAttribute idAttribute = attributes.get("id");
      FacesContext facesContext = FacesContext.getCurrentInstance();
      facesContext.getExternalContext().log("expanded attribute has been already set for component with id: " +
          idAttribute != null ? idAttribute.getValue() : null +
          "[" + attribute.getValue() + "]. value attribute is deprecated and thus has been dropped!");
    }
       
    return super.createMetaRuleset(type).alias("expanded", "value");
  }
View Full Code Here

  super(config);
    }

    protected MetaRuleset createMetaRuleset(Class clazz) {
  TagAttributes attributes = this.tag.getAttributes();
  TagAttribute attribute = attributes.get("onSlideSubmit");
  if ((attribute != null) && (attributes.get("submitOnSlide") != null)) {
      TagAttribute idAttribute = attributes.get("id");
      StringBuilder builder = new StringBuilder();
      builder.append("submitOnSlide attribute has been already set for component with id=");
      builder.append(idAttribute != null ? idAttribute.getValue() : null);
      builder.append(": [").append(attribute.getValue()).append("]. ");
      builder.append("Attribute onSlideSubmit is deprecated and thus has been dropped!");

      FacesContext.getCurrentInstance().getExternalContext().log(builder.toString());
  }
View Full Code Here

        super(config);
    }
   
    protected MetaRuleset createMetaRuleset(Class type) {
        TagAttributes attributes = this.tag.getAttributes();
        TagAttribute eventAttribute = attributes.get("event");
        TagAttribute showEventAttribute = attributes.get("showEvent");
        MetaRuleset ruleset = super.createMetaRuleset(type);
       
        if (eventAttribute != null) {
            if (showEventAttribute != null) {
                TagAttribute idAttribute = attributes.get("id");
                FacesContext facesContext = FacesContext.getCurrentInstance();
                facesContext.getExternalContext()
                        .log("showEvent attribute has been already set for component with id: "
                             + idAttribute != null ? idAttribute.getValue() : null
                             + "[" + eventAttribute.getValue() + "]. event attribute is deprecated and thus has been dropped!");
                ruleset.ignore("event");
            } else {
                ruleset.alias("event", "showEvent");
            }
View Full Code Here

    super(config);
  }
 
  protected MetaRuleset createMetaRuleset(Class type) {
    TagAttributes attributes = this.tag.getAttributes();
    TagAttribute attribute = attributes.get("value");
    if (attribute != null && attributes.get("opened") != null) {
      TagAttribute idAttribute = attributes.get("id");
      FacesContext facesContext = FacesContext.getCurrentInstance();
      facesContext.getExternalContext().log("opened attribute has been already set for component with id: " +
          idAttribute != null ? idAttribute.getValue() : null +
          "[" + attribute.getValue() + "]. value attribute is deprecated and thus has been dropped!");
    }
    return super.createMetaRuleset(type).alias("opened", "value");
  }
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.