/** * Utility method for fetching the appropriate TagAttribute * * @param localName * name of attribute * @return TagAttribute if found, otherwise null */ protected final TagAttribute getAttribute(String localName) { return this.tag.getAttributes().get(localName); }
/** * Utility method for fetching the appropriate TagAttribute * * @param localName * name of attribute * @return TagAttribute if found, otherwise null */ protected final TagAttribute getAttribute(String localName) { return this.tag.getAttributes().get(localName); }
private boolean hasJsfAttribute(Tag tag) { for (String ns : tag.getAttributes().getNamespaces()) { if (Namespace.jsf.uri.equals(ns)) { return true; } } return false; }
private boolean hasJsfAttribute(Tag tag) { for (String ns : tag.getAttributes().getNamespaces()) { if (Namespace.jsf.uri.equals(ns)) { return true; } } return false; }
/** * Utility method for fetching the appropriate TagAttribute * * @param localName * name of attribute * @return TagAttribute if found, otherwise null */ protected final TagAttribute getAttribute(String localName) { return this.tag.getAttributes().get(localName); }
/** * Utility method for fetching the appropriate TagAttribute * * @param localName * name of attribute * @return TagAttribute if found, otherwise null */ protected final TagAttribute getAttribute(String localName) { return this.tag.getAttributes().get(localName); }
/** * Utility method for fetching the appropriate TagAttribute * * @param localName * name of attribute * @return TagAttribute if found, otherwise null */ protected final TagAttribute getAttribute(String localName) { return this.tag.getAttributes().get(localName); }
private boolean hasJsfAttribute(Tag tag) { for (String ns : tag.getAttributes().getNamespaces()) { if (Namespace.jsf.uri.equals(ns)) { return true; } } return false; }
public StackPaneHandler(ComponentConfig componentConfig) { super(componentConfig); Tag tag = componentConfig.getTag(); facelet = tag.getAttributes().get("facelet"); client = tag.getAttributes().get("client"); savedId = tag.getAttributes().get("id"); } @Override
protected final TagAttribute getRequiredPassthroughAttribute(String localName) throws TagException { TagAttribute attr = this.tag.getAttributes().get(PassThroughAttributeLibrary.Namespace, localName); if (attr == null) { throw new TagException(this.tag, "Attribute '" + localName + "' is required"); } return attr; }
protected final TagAttribute getRequiredPassthroughAttribute(String localName) throws TagException { TagAttribute attr = this.tag.getAttributes().get(PassThroughAttributeLibrary.Namespace, localName); if (attr == null) { throw new TagException(this.tag, "Attribute '" + localName + "' is required"); } return attr; }
public StackHandler(ComponentConfig componentConfig) { super(componentConfig); Tag tag = componentConfig.getTag(); selectedIdTag = tag.getAttributes().get("selectedId"); }
public CompositeComponentTagHandler(Resource ccResource, ComponentConfig config) { super(config); this.ccResource = ccResource; this.binding = config.getTag().getAttributes().get("binding"); ((ComponentTagHandlerDelegateImpl)this.getTagHandlerDelegate()).setCreateCompositeComponentDelegate(this); }
public CompositeComponentTagHandler(Resource ccResource, ComponentConfig config) { super(config); this.ccResource = ccResource; this.binding = config.getTag().getAttributes().get("binding"); ((ComponentTagHandlerDelegateImpl)this.getTagHandlerDelegate()).setCreateCompositeComponentDelegate(this); }
public TagAttribute getTagAttribute(String localName) { // workaround for MyFaces if (componentHandler == null) { return getComponentConfig().getTag().getAttributes().get(localName); } return componentHandler.getTagAttribute(localName); }
private Tag generateTagIfNecessary(Tag tag, TagAttributes modifiedAttributes) { if (modifiedAttributes != tag.getAttributes()) { if (tag.getLocalName().equals("div") && modifiedAttributes instanceof AFTagAttributes) { return generatePuiHtmlTag(tag, modifiedAttributes, "puiDiv"); } else if (tag.getLocalName().equals("span") && modifiedAttributes instanceof AFTagAttributes) { return generatePuiHtmlTag(tag, modifiedAttributes, "puiSpan"); } else return new Tag(tag.getLocation(), tag.getNamespace(), tag.getLocalName(), tag.getQName(), modifiedAttributes); } return null; }
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; }
public PageResourceHandler(TagConfig config) { super(config); this.config = config; name = getAttribute("name"); type = getAttribute("type"); flavor = getAttribute("flavor"); target = getAttribute("target"); includeTimestamp = getAttribute("includeTimestamp"); vars = tag.getAttributes().getAll(); }
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; }