public Location getLocation() { return this.tag.getLocation(); } }
public Location getLocation() { return this.tag.getLocation(); } }
@Override public Tag decorate(Tag orig, TagAttributes attributes) { return new Tag(orig.getLocation(), this.targetNamespace, this.targetLocalName, this.targetQName, attributes); } }
private Tag convertToPuiMessagesTag(Tag tag, TagAttributes attributeList) { if (tag.getNamespace().equals(PRIMEFACES_NAMESPACE)) { AFTagAttributes modifiedAttributes = new AFTagAttributes(attributeList.getAll()); modifiedAttributes.addAttribute(tag.getLocation(), PASS_THROUGH_NAMESPACE, "primefaces", "primefaces", "true"); Tag t = new Tag(tag.getLocation(), HTML_NAMESPACE, "puimessages", "puimessages", modifiedAttributes); return t; } else { Tag t = new Tag(tag.getLocation(), HTML_NAMESPACE, "puimessages", "puimessages", attributeList); return t; } }
private TagAttributes addBlockAttributeIfNeeded(Tag tag, boolean isDiv, TagAttribute[] attributes) { TagAttribute[] moreAttributes = attributes; if (isDiv) { moreAttributes = new TagAttribute[attributes.length + 1]; for (int i = 0; i < attributes.length; i++) moreAttributes[i] = attributes[i]; moreAttributes[attributes.length] = TagAttributeUtilities.createTagAttribute(tag.getLocation(), HTML_NAMESPACE, "display", "display", "block"); } TagAttributes more = new AFTagAttributes(moreAttributes); return more; }
private TagAttribute createElementName(Tag tag) { Location location = tag.getLocation(); String ns = Namespace.p.uri; String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY; String qName = "p:" + myLocalName; String value = tag.getLocalName(); return TagAttributeUtilities.createTagAttribute(location, ns, myLocalName, qName, value); }
private TagAttribute createElementName(Tag tag) { Location location = tag.getLocation(); String ns = Namespace.p.uri; String myLocalName = Renderer.PASSTHROUGH_RENDERER_LOCALNAME_KEY; String qName = "p:" + myLocalName; String value = tag.getLocalName(); return new TagAttributeImpl(location, ns, myLocalName, qName, value); }
private Tag convertElementToSelectOneMenuTag(Tag tag, TagAttributes modifiedAttributes) { TagAttribute[] attributes = modifiedAttributes.getAll(); TagAttribute[] lessAttributes = Arrays.copyOf(attributes, attributes.length - 1); TagAttributes less = new AFTagAttributes(lessAttributes); Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, "selectOneMenu", "b:selectOneMenu", less); return t; }
/** * Constructor. * * @param orig the original tag. * @param attributes the tag attributes. */ public Tag(Tag orig, TagAttributes attributes) { this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig .getQName(), attributes); }
/** * Constructor. * * @param orig the original tag. * @param attributes the tag attributes. */ public Tag(Tag orig, TagAttributes attributes) { this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig .getQName(), attributes); }
private Tag convertDivElementToPanelGroup(Tag tag, TagAttributes modifiedAttributes, boolean isDiv) { TagAttribute[] attributes = modifiedAttributes.getAll(); TagAttributes more = addBlockAttributeIfNeeded(tag, isDiv, attributes); Tag t = new Tag(tag.getLocation(), JSF_NAMESPACE, "panelGroup", "h:panelGroup", more); return t; }
private Tag convertToSelectOneMenuTag(Tag tag, TagAttributes attributeList) { TagAttribute[] attributes = attributeList.getAll(); TagAttributes more = new AFTagAttributes(attributes); Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, "selectOneMenu", "b:selectOneMenu", more); return t; }
private static String print(Tag tag, TagAttribute attr) { return tag.getLocation() + " <" + tag.getQName() + " " + attr.getQName() + "=\"" + attr.getValue() + "\">"; } }
private static String print(Tag tag, TagAttribute attr) { return tag.getLocation() + " <" + tag.getQName() + " " + attr.getQName() + "=\"" + attr.getValue() + "\">"; }
/** * Constructor. * * @param orig the original tag. * @param attributes the tag attributes. */ public Tag(Tag orig, TagAttributes attributes) { this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig .getQName(), attributes); }
private Tag convertToSelectOneMenuTag(Tag tag, TagAttributes attributeList) { TagAttribute[] attributes = attributeList.getAll(); TagAttributes more = new AFTagAttributes(attributes); Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, "selectOneMenu", "b:selectOneMenu", more); return t; }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException { UIComponent compositeParent = UIComponent.getCurrentCompositeComponent(ctx.getFacesContext()); if (compositeParent != null) { compositeParent.subscribeToEvent(PostAddToViewEvent.class, new RelocateFacetListener(ctx, parent, this.tag.getLocation())); } }
/** * Converts <option>firstComboboxItem</option> to <f:selectItem itemValue="firstComboxItem">. */ private Tag convertTofSelectItemText(Tag tag, TagAttributes attributeList) { TagAttribute[] attributes = attributeList.getAll(); AFTagAttributes more = new AFTagAttributes(attributes); more.replaceAttribute("value", "itemValue"); more.replaceAttribute("label", "itemLabel"); Tag t = new Tag(tag.getLocation(), JSF_CORE_NAMESPACE, "selectItem", "selectItem", more); return t; }
protected Tag convertTag(Tag tag, Namespace namespace, String localName) { Location location = tag.getLocation(); String ns = namespace.uri; String qName = namespace.name() + ":" + localName; TagAttributes attributes = convertAttributes(tag.getAttributes()); Tag converted = new Tag(location, ns, localName, qName, attributes); for (TagAttribute tagAttribute : attributes.getAll()) { // set the correct tag tagAttribute.setTag(converted); } return converted; }
protected Tag convertTag(Tag tag, Namespace namespace, String localName) { Location location = tag.getLocation(); String ns = namespace.uri; String qName = namespace.name() + ":" + localName; TagAttributes attributes = convertAttributes(tag.getAttributes(), tag); Tag converted = new Tag(location, ns, localName, qName, attributes); for (TagAttribute tagAttribute : attributes.getAll()) { // set the correct tag tagAttribute.setTag(converted); } return converted; }