Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.TagAttributes


    public DataFilterSliderListenerTagHandler(ComponentConfig config) {
  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!");
View Full Code Here


    public ToolTipTagHandlerBase(ComponentConfig config) {
        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!");
View Full Code Here

  public SimpleTogglePanelTagHandlerBase(ComponentConfig config) {
    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!");
    }
View Full Code Here

                localName,
                initialAttribute.getQName(),
                attributeValue);
          }
         
          TagAttributes tagAttributes = new TagAttributes(attributes);
          this.tag = new Tag(initialTag, tagAttributes);
        }
       
        public String getComponentType() {
          return config.getComponentType();
View Full Code Here

  public TabPanelTagHandlerBase(ComponentConfig config) {
    super(config);
  }
 
  protected MetaRuleset createMetaRuleset(Class type) {
    TagAttributes attributes = this.tag.getAttributes();
    TagAttribute attribute = attributes.get("value");
    if (attribute != null && attributes.get("selectedTab") != null) {
      TagAttribute idAttribute = attributes.get("id");
      FacesContext facesContext = FacesContext.getCurrentInstance();
      facesContext.getExternalContext().log("selectedTab 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!");
    }
View Full Code Here

                Location location = new Location("cdr", 1, 2);
                String ns = "urn:unk";

                tag = new Tag(location, ns, "tag", null,
                        new TagAttributes(new TagAttribute[] {
                                new TagAttribute(location, "", "beanName", null, beanName),
                                new TagAttribute(location, "", "ajaxOnly", null, String.valueOf(ajaxOnly)) }));
            }

            public FaceletHandler getNextHandler() {
View Full Code Here

public abstract class ToolTipTagHandlerBase extends AjaxComponentHandler {
      public ToolTipTagHandlerBase(ComponentConfig config) {
       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");
View Full Code Here

  public SimpleTogglePanelTagHandlerBase(ComponentConfig config) {
    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!");
    }
View Full Code Here

            for (int i = 0; i < oa.length; i++) {
                if (!"jsfc".equals(oa[i].getLocalName())) {
                    na[p++] = oa[i];
                }
            }
            return new Tag(tag, new TagAttributes(na));
        }
        return tag;
    }
View Full Code Here

                attrList.add(attr[i]);
            }
            attr = (TagAttribute[]) attrList.toArray(new TagAttribute[attrList
                    .size()]);
            return new Tag(tag.getLocation(), tag.getNamespace(), tag
                    .getLocalName(), tag.getQName(), new TagAttributes(attr));
        }
    }
View Full Code Here

TOP

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

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.