Package javax.faces.view.facelets

Examples of javax.faces.view.facelets.MetaRuleset


    super(config);
  }
 
  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    Class[] paramList = new Class[]{Object.class, Object.class};
   
    MetaRule metaRule = new MethodRule("sortFunction", Integer.class, paramList);
    metaRuleset.addRule(metaRule);
   
    return metaRuleset;
  }
View Full Code Here


    super(config);
  }
 
  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);

    metaRuleset.addRule(new MethodRule("eventSelectListener", null, new Class[]{ScheduleEntrySelectEvent.class}));
    metaRuleset.addRule(new MethodRule("dateSelectListener", null, new Class[]{DateSelectEvent.class}));
    metaRuleset.addRule(new MethodRule("eventMoveListener", null, new Class[]{ScheduleEntryMoveEvent.class}));
    metaRuleset.addRule(new MethodRule("eventResizeListener", null, new Class[]{ScheduleEntryResizeEvent.class}));
   
    return metaRuleset;
  }  
View Full Code Here

        super(config);
    }

    @Override
    protected MetaRuleset createMetaRuleset(Class type) {
        MetaRuleset metaRuleset = super.createMetaRuleset(type);

    metaRuleset.addRule(new MethodRule("listener", null, new Class[0]));
       
    return metaRuleset;
    }
View Full Code Here

    super(config);
  }
 
  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
   
    metaRuleset.addRule(new MethodRule("nodeSelectListener", null, new Class[]{NodeSelectEvent.class}));
        metaRuleset.addRule(new MethodRule("nodeUnselectListener", null, new Class[]{NodeUnselectEvent.class}));
    metaRuleset.addRule(new MethodRule("nodeExpandListener", null, new Class[]{NodeExpandEvent.class}));
    metaRuleset.addRule(new MethodRule("nodeCollapseListener", null, new Class[]{NodeCollapseEvent.class}));
        metaRuleset.addRule(new MethodRule("dragdropListener", null, new Class[]{DragDropEvent.class}));
   
    return metaRuleset;
  }
View Full Code Here

    super(config);
  }

  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);

    metaRuleset.addRule(new MethodRule("listener", null, new Class[0]));

    return metaRuleset;
  }
View Full Code Here

    super(config);
  }

  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);

    metaRuleset.addRule(new MethodRule("tabChangeListener", String.class, new Class[]{TabChangeEvent.class}));

    return metaRuleset;
  }
View Full Code Here

        }       
    }

    protected MetaRuleset createMetaRuleset(Class<?> type, BeanInfo beanInfo)
    {
        MetaRuleset m = new CompositeMetaRulesetImpl(this.getTag(), type, beanInfo);
        // ignore standard component attributes
        m.ignore("binding").ignore("id");

        // add auto wiring for attributes
        m.addRule(CompositeComponentRule.Instance);
       
        // add retarget method expression rules
        m.addRule(RetargetMethodExpressionRule.Instance);
       
        if (ActionSource.class.isAssignableFrom(type))
        {
            m.addRule(ActionSourceRule.Instance);
        }

        if (ValueHolder.class.isAssignableFrom(type))
        {
            m.addRule(ValueHolderRule.Instance);

            if (EditableValueHolder.class.isAssignableFrom(type))
            {
                m.ignore("submittedValue");
                m.ignore("valid");
                m.addRule(EditableValueHolderRule.Instance);
            }
        }
       
        return m;
    }
View Full Code Here

    }

    @Override
    public MetaRuleset createMetaRuleset(Class type)
    {
        MetaRuleset m = new MetaRulesetImpl(_delegate.getTag(), type);
        // ignore standard component attributes
        m.ignore("binding").ignore("id");

        // add auto wiring for attributes
        m.addRule(ComponentRule.Instance);

        // if it's an ActionSource
        if (ActionSource.class.isAssignableFrom(type))
        {
            m.addRule(ActionSourceRule.Instance);
        }

        // if it's a ValueHolder
        if (ValueHolder.class.isAssignableFrom(type))
        {
            m.addRule(ValueHolderRule.Instance);

            // if it's an EditableValueHolder
            if (EditableValueHolder.class.isAssignableFrom(type))
            {
                m.ignore("submittedValue");
                m.ignore("valid");
                m.addRule(EditableValueHolderRule.Instance);
            }
        }
       
        return m;
    }
View Full Code Here

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

  }
 
  @Override
  protected MetaRuleset createMetaRuleset(Class type)
  {
    MetaRuleset m = super.createMetaRuleset(type);
    // Trinidad-2014 : Converters may have id specified in the tld, but it isn't supported
    if (Beans.isDesignTime())
      m.ignore("id");
    m.addRule(StringArrayPropertyTagRule.Instance);
    m.addRule(ValueExpressionTagRule.Instance);
    m.addRule(LocalePropertyTagRule.Instance);
    m.addRule (TimezonePropertyTagRule.Instance);
    return m;
  }
View Full Code Here

TOP

Related Classes of javax.faces.view.facelets.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.