/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx the Facelet context. * @param instance the instance. */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
@Override protected MetaRuleset createMetaRuleset(Class type) { MetaRuleset meta = super.createMetaRuleset(type); String myNamespace = this.tag.getNamespace(); if ((!UILibrary.Namespace.equals(myNamespace)) && (!UILibrary.XMLNSNamespace.equals(myNamespace))) { meta.add(new TagMetaData(type)); } meta.alias("class", "styleClass"); return meta; }
@Override protected MetaRuleset createMetaRuleset(Class type) { return super.createMetaRuleset(type).alias("escapeItem", JSFAttr.ITEM_ESCAPED_ATTR); //return super.createMetaRuleset(type); }
@Override public MetaRuleset createMetaRuleset(Class type) { return super.createMetaRuleset(type).ignoreAll(); } }
@Override public MetaRuleset createMetaRuleset(Class type) { MetaRuleset metaRuleset = new MetaRulesetImpl(_delegate.getTag(), type); // ignore binding and disabled, because they are handled by DelegatingMetaTagHandler metaRuleset.ignore(JSFAttr.BINDING_ATTR).ignore(JSFAttr.DISABLED_ATTR); // ignore for, because it is handled by FaceletsAttachedObjectHandler metaRuleset.ignore(JSFAttr.FOR_ATTR); return metaRuleset; }
/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx * @param instance */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
@Override protected MetaRuleset createMetaRuleset(Class type) { MetaRuleset meta = super.createMetaRuleset(type); String myNamespace = this.tag.getNamespace(); if ((!UILibrary.Namespace.equals(myNamespace)) && (!UILibrary.XMLNSNamespace.equals(myNamespace))) { meta.add(new TagMetaData(type)); } meta.alias("class", "styleClass"); return meta; }
@Override protected MetaRuleset createMetaRuleset(Class type) { return super.createMetaRuleset(type).alias("escapeItem", JSFAttr.ITEM_ESCAPED_ATTR); //return super.createMetaRuleset(type); }
protected MetaRuleset createMetaRuleset(Class type) { return super.createMetaRuleset(type).ignoreAll(); } }
@Override public MetaRuleset createMetaRuleset(Class type) { MetaRuleset metaRuleset = new MetaRulesetImpl(_delegate.getTag(), type); // ignore binding and disabled, because they are handled by DelegatingMetaTagHandler metaRuleset.ignore(JSFAttr.BINDING_ATTR).ignore(JSFAttr.DISABLED_ATTR); // ignore for, because it is handled by FaceletsAttachedObjectHandler metaRuleset.ignore(JSFAttr.FOR_ATTR); return metaRuleset; }
/** * Invoking/extending this method will cause the results of the created * MetaRuleset to auto-wire state to the passed instance. * * @param ctx the Facelet context. * @param instance the instance. */ protected void setAttributes(FaceletContext ctx, Object instance) { if (instance != null) { Class type = instance.getClass(); if (mapper == null || !this.lastType.equals(type)) { this.lastType = type; this.mapper = this.createMetaRuleset(type).finish(); } this.mapper.applyMetadata(ctx, instance); } } }
@Override protected MetaRuleset createMetaRuleset(Class type) { MetaRuleset meta = super.createMetaRuleset(type); String myNamespace = this.tag.getNamespace(); if ((!UILibrary.Namespace.equals(myNamespace)) && (!UILibrary.XMLNSNamespace.equals(myNamespace))) { meta.add(new TagMetaData(type)); } meta.alias("class", "styleClass"); return meta; }
@Override protected MetaRuleset createMetaRuleset(Class type) { return super.createMetaRuleset(type).alias("class", "styleClass"); }
protected MetaRuleset createMetaRuleset(Class type) { return super.createMetaRuleset(type).ignoreAll(); } }
@Override public MetaRuleset createMetaRuleset(Class type) { MetaRuleset metaRuleset = new MetaRulesetImpl(_delegate.getTag(), type); // ignore binding and disabled, because they are handled by DelegatingMetaTagHandler metaRuleset.ignore(JSFAttr.BINDING_ATTR).ignore(JSFAttr.DISABLED_ATTR); // ignore for, because it is handled by FaceletsAttachedObjectHandler metaRuleset.ignore(JSFAttr.FOR_ATTR); return metaRuleset; }