Package com.sun.facelets.tag

Examples of com.sun.facelets.tag.MetaRuleset


    }

    @Override
    protected MetaRuleset createMetaRuleset(Class type)
    {
        MetaRuleset ruleSet = super.createMetaRuleset(type);
       
        //Add rule to handle EL expressions
        ruleSet.addRule(_ValidatorRule.Instance);
       
        return ruleSet;
    }
View Full Code Here


  @SuppressWarnings("unchecked")
  @Override
  protected MetaRuleset createMetaRuleset(Class type)
  {
    MetaRuleset m = super.createMetaRuleset(type);
   
    m.addRule(StringArrayPropertyTagRule.Instance);
    m.addRule(TrinidadListenersTagRule.Instance);
          
    return m;
  }
View Full Code Here

    gridLayout.setId(root.createUniqueId());
    panel.getFacets().put(TobagoConstants.FACET_LAYOUT, gridLayout);
  }

  protected MetaRuleset createMetaRuleset(Class aClass) {
    MetaRuleset metaRuleset = super.createMetaRuleset(aClass);
    if (UIPanel.class.isAssignableFrom(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;
    } else {
      metaRuleset.ignore(TobagoConstants.ATTR_LABEL);
      metaRuleset.ignore(TobagoConstants.ATTR_TIP);
      metaRuleset.ignore("labelWidth");
    }
    if (SupportsMarkup.class.isAssignableFrom(aClass)) {
      metaRuleset.addRule(SupportsMarkupRule.INSTANCE);
    }
    if (UIInput.class.isAssignableFrom(aClass)) {
      metaRuleset.addRule(SuggestMethodRule.INSTANCE);
    }
    return metaRuleset;
  }
View Full Code Here

  }
 
  @SuppressWarnings("unchecked")
  @Override
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset ruleset = super.createMetaRuleset(type);
   
    ruleset.addRule(new MetaRule() {

      @Override
      public Metadata applyRule(String name, final TagAttribute attribute, MetadataTarget metadataTarget) {
        if (FILTER_METHOD.equals(name)) {
          return new Metadata() {
View Full Code Here

   
    handler = new ColumnTagHandler(columnConfig) {

      @Override
      protected MetaRuleset createMetaRuleset(Class type) {
        MetaRuleset ruleset = super.createMetaRuleset(type);
        ruleset.addRule(new MetaRule() {

          @Override
          public Metadata applyRule(final String name,
              final TagAttribute attribute, MetadataTarget meta) {
            if (ColumnsAttributes.FILTER_ATTRIBUTES.indexOf(name) != -1 ||
View Full Code Here

   }
          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");
           }
       }
              return ruleset;
   }
View Full Code Here

 
  @SuppressWarnings("unchecked")
  @Override
  protected MetaRuleset createMetaRuleset(Class type) {
   
    MetaRuleset ruleset = super.createMetaRuleset(type);
   
    ruleset.addRule(RowKeyConverterRule.INSTANCE);
   
    return ruleset;
  }
View Full Code Here

  }
 
  @SuppressWarnings("unchecked")
  @Override
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset ruleset = super.createMetaRuleset(type);
   
    ruleset.addRule(new MetaRule() {

      @Override
      public Metadata applyRule(String name, final TagAttribute attribute, MetadataTarget metadataTarget) {
        if (FILTER_METHOD.equals(name)) {
          return new Metadata() {
View Full Code Here

  /* (non-Javadoc)
   * @see org.ajax4jsf.tag.AjaxComponentHandler#createMetaRuleset(java.lang.Class)
   */
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRules = super.createMetaRuleset(type);
    metaRules.addRule(ajaxPushMetaRule);
    return metaRules;
  }
View Full Code Here

    public RepeatHandler(ComponentConfig config) {
        super(config);
    }

    protected MetaRuleset createMetaRuleset(Class type) {
        MetaRuleset meta = super.createMetaRuleset(type);

        if (!UILibrary.Namespace.equals(this.tag.getNamespace())) {
            meta.add(new TagMetaData(type));
        }
       
        meta.alias("class", "styleClass");

        return meta;
    }
View Full Code Here

TOP

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

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.