public void applyMetadata(FaceletContext ctx, Object instance) { UIComponent c = (UIComponent) instance; Map attrs = c.getAttributes(); attrs.put("alias.element", tag.getQName()); if (this.attrs.length > 0) { attrs.put("alias.attributes", this.attrs); } }
private final static String print(Tag tag, TagAttribute attr) { return tag.getLocation() + " <" + tag.getQName() + " " + attr.getQName() + "=\"" + attr.getValue() + "\">"; }
public Tag(Tag orig, TagAttributes attributes) { this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig .getQName(), attributes); }
if ("a".equals(n)) { return new Tag(tag.getLocation(), HtmlLibrary.Namespace, "commandLink", tag.getQName(), tag.getAttributes()); "form", tag.getQName(), tag.getAttributes()); return new Tag(tag.getLocation(), HtmlLibrary.Namespace, "inputText", tag .getQName(), na); .getQName(), na); .getQName(), na); .getQName(), na);
.size()]); return new Tag(tag.getLocation(), tag.getNamespace(), tag .getLocalName(), tag.getQName(), new TagAttributes(attr));