private String[] determineQName(Tag tag) { TagAttribute attr = tag.getAttributes().get("jsfc"); if (attr != null) { if (log.isLoggable(Level.FINE)) { log.fine(attr + " JSF Facelet Compile Directive Found"); } String value = attr.getValue(); String namespace, localName; int c = value.indexOf(':'); if (c == -1) { namespace = this.namespaceManager.getNamespace(""); localName = value; } else { String prefix = value.substring(0, c); namespace = this.namespaceManager.getNamespace(prefix); if (namespace == null) { throw new TagAttributeException(tag, attr, "No Namespace matched for: " + prefix); } localName = value.substring(c + 1); } return new String[] { namespace, localName }; } else { return new String[] { tag.getNamespace(), tag.getLocalName() }; } }
private String[] determineQName(Tag tag) { TagAttribute attr = tag.getAttributes().get("jsfc"); if (attr != null) { if (log.isLoggable(Level.FINE)) { log.fine(attr + " JSF Facelet Compile Directive Found"); } String value = attr.getValue(); String namespace, localName; int c = value.indexOf(':'); if (c == -1) { namespace = this.namespaceManager.getNamespace(""); localName = value; } else { String prefix = value.substring(0, c); namespace = this.namespaceManager.getNamespace(prefix); if (namespace == null) { throw new TagAttributeException(tag, attr, "No Namespace matched for: " + prefix); } localName = value.substring(c + 1); } return new String[] { namespace, localName }; } else { return new String[] { tag.getNamespace(), tag.getLocalName() }; } }
private String[] determineQName(Tag tag) { TagAttribute attr = tag.getAttributes().get("jsfc"); if (attr != null) { if (log.isLoggable(Level.FINE)) { log.fine(attr + " JSF Facelet Compile Directive Found"); } String value = attr.getValue(); String namespace, localName; int c = value.indexOf(':'); if (c == -1) { namespace = this.namespaceManager.getNamespace(""); localName = value; } else { String prefix = value.substring(0, c); namespace = this.namespaceManager.getNamespace(prefix); if (namespace == null) { throw new TagAttributeException(tag, attr, "No Namespace matched for: " + prefix); } localName = value.substring(c + 1); } return new String[] { namespace, localName }; } else { return new String[] { tag.getNamespace(), tag.getLocalName() }; } }
private String[] determineQName(Tag tag) { TagAttribute attr = tag.getAttributes().get("jsfc"); if (attr != null) { if (log.isLoggable(Level.FINE)) { log.fine(attr + " JSF Facelet Compile Directive Found"); } String value = attr.getValue(); String namespace, localName; int c = value.indexOf(':'); if (c == -1) { namespace = this.namespaceManager.getNamespace(""); localName = value; } else { String prefix = value.substring(0, c); namespace = this.namespaceManager.getNamespace(prefix); if (namespace == null) { throw new TagAttributeException(tag, attr, "No Namespace matched for: " + prefix); } localName = value.substring(c + 1); } return new String[] { namespace, localName }; } else { return new String[] { tag.getNamespace(), tag.getLocalName() }; } }
public void pushNamespace(String prefix, String uri) { if (log.isLoggable(Level.FINE)) { log.fine("Namespace Pushed " + prefix + ": " + uri); } boolean alreadyPresent = this.namespaceManager.getNamespace(prefix) != null; this.namespaceManager.pushNamespace(prefix, uri); NamespaceUnit unit; if (this.currentUnit() instanceof NamespaceUnit && !alreadyPresent) { unit = (NamespaceUnit) this.currentUnit(); } else { unit = new NamespaceUnit(this.tagLibrary); this.startUnit(unit); } unit.setNamespace(prefix, uri); }
public void pushNamespace(String prefix, String uri) { if (log.isLoggable(Level.FINE)) { log.fine("Namespace Pushed " + prefix + ": " + uri); } boolean alreadyPresent = this.namespaceManager.getNamespace(prefix) != null; this.namespaceManager.pushNamespace(prefix, uri); NamespaceUnit unit; if (this.currentUnit() instanceof NamespaceUnit && !alreadyPresent) { unit = (NamespaceUnit) this.currentUnit(); } else { unit = new NamespaceUnit(this.tagLibrary); this.startUnit(unit); } unit.setNamespace(prefix, uri); }
public void pushNamespace(String prefix, String uri) { if (log.isLoggable(Level.FINE)) { log.fine("Namespace Pushed " + prefix + ": " + uri); } boolean alreadyPresent = this.namespaceManager.getNamespace(prefix) != null; this.namespaceManager.pushNamespace(prefix, uri); NamespaceUnit unit; if (this.currentUnit() instanceof NamespaceUnit && !alreadyPresent) { unit = (NamespaceUnit) this.currentUnit(); } else { unit = new NamespaceUnit(this.tagLibrary); this.startUnit(unit); } unit.setNamespace(prefix, uri); }
public void pushNamespace(String prefix, String uri) { if (log.isLoggable(Level.FINE)) { log.fine("Namespace Pushed " + prefix + ": " + uri); } boolean alreadyPresent = this.namespaceManager.getNamespace(prefix) != null; this.namespaceManager.pushNamespace(prefix, uri); NamespaceUnit unit; if (this.currentUnit() instanceof NamespaceUnit && !alreadyPresent) { unit = (NamespaceUnit) this.currentUnit(); } else { unit = new NamespaceUnit(this.tagLibrary); this.startUnit(unit); } unit.setNamespace(prefix, uri); }