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