}
}
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;
}