protected TagAttribute convertTagAttribute(TagAttribute attribute) { Location location = attribute.getLocation(); String ns = attribute.getNamespace(); String myLocalName = attribute.getLocalName(); String qName; String value = attribute.getValue(); if (Namespace.jsf.uri.equals(attribute.getNamespace())) { // make this a component attribute qName = myLocalName; ns = ""; } else { if (ns.length() != 0 && !ns.equals(attribute.getTag().getNamespace())) { // the attribute has a different namespace than the tag. preserve it. return attribute; } if (attribute.getLocalName().equals(otherHtmlIdAttribute)) { // special case for input name qName = "id"; myLocalName = "id"; } else { // make this a pass through attribute qName = "p:" + myLocalName; ns = Namespace.p.uri; } } return new TagAttributeImpl(location, ns, myLocalName, qName, value); } }
protected TagAttribute convertTagAttribute(TagAttribute attribute) { Location location = attribute.getLocation(); String ns = attribute.getNamespace(); String myLocalName = attribute.getLocalName(); String qName; String value = attribute.getValue(); if (Namespace.jsf.uri.equals(attribute.getNamespace())) { // make this a component attribute qName = myLocalName; ns = ""; } else { if (ns.length() != 0 && !ns.equals(attribute.getTag().getNamespace())) { // the attribute has a different namespace than the tag. // preserve it. return attribute; } if (attribute.getLocalName().equals(otherHtmlIdAttribute)) { // special case for input name qName = "id"; myLocalName = "id"; } else { // make this a pass through attribute qName = "p:" + myLocalName; ns = Namespace.p.uri; } } return TagAttributeUtilities.createTagAttribute(location, ns, myLocalName, qName, value); } }
protected TagAttribute convertTagAttribute(TagAttribute attribute) { Location location = attribute.getLocation(); String ns = attribute.getNamespace(); String myLocalName = attribute.getLocalName(); String qName; String value = attribute.getValue(); if (Namespace.jsf.uri.equals(attribute.getNamespace())) { // make this a component attribute qName = myLocalName; ns = ""; } else { if (ns.length() != 0 && !ns.equals(attribute.getTag().getNamespace())) { // the attribute has a different namespace than the tag. preserve it. return attribute; } if (attribute.getLocalName().equals(otherHtmlIdAttribute)) { // special case for input name qName = "id"; myLocalName = "id"; } else { // make this a pass through attribute qName = "p:" + myLocalName; ns = Namespace.p.uri; } } return new TagAttributeImpl(location, ns, myLocalName, qName, value); } }
protected TagAttribute convertTagAttribute(TagAttribute attribute) { Location location = attribute.getLocation(); String ns = attribute.getNamespace(); String myLocalName = attribute.getLocalName(); String qName; String value = attribute.getValue(); if (Namespace.jsf.uri.equals(attribute.getNamespace())) { // make this a component attribute qName = myLocalName; ns = ""; } else { if (ns.length() != 0 && !ns.equals(attribute.getTag().getNamespace())) { // the attribute has a different namespace than the tag. preserve it. return attribute; } if (attribute.getLocalName().equals(otherHtmlIdAttribute)) { // special case for input name qName = "id"; myLocalName = "id"; } else { // make this a pass through attribute qName = "p:" + myLocalName; ns = Namespace.p.uri; } } return new TagAttributeImpl(location, ns, myLocalName, qName, value); } }
protected TagAttribute convertTagAttribute(TagAttribute attribute) { Location location = attribute.getLocation(); String ns = attribute.getNamespace(); String myLocalName = attribute.getLocalName(); String qName; String value = attribute.getValue(); if (Namespace.jsf.uri.equals(attribute.getNamespace())) { // make this a component attribute qName = myLocalName; ns = ""; } else { if (ns.length() != 0 && !ns.equals(attribute.getTag().getNamespace())) { // the attribute has a different namespace than the tag. preserve it. return attribute; } if (attribute.getLocalName().equals(otherHtmlIdAttribute)) { // special case for input name qName = "id"; myLocalName = "id"; } else { // make this a pass through attribute qName = "p:" + myLocalName; ns = Namespace.p.uri; } } return new TagAttributeImpl(location, ns, myLocalName, qName, value); } }
protected TagAttribute convertTagAttribute(TagAttribute attribute) { Location location = attribute.getLocation(); String ns = attribute.getNamespace(); String myLocalName = attribute.getLocalName(); String qName; String value = attribute.getValue(); if (Namespace.jsf.uri.equals(attribute.getNamespace())) { // make this a component attribute qName = myLocalName; ns = ""; } else { if (ns.length() != 0 && !ns.equals(attribute.getTag().getNamespace())) { // the attribute has a different namespace than the tag. // preserve it. return attribute; } if (attribute.getLocalName().equals(otherHtmlIdAttribute)) { // special case for input name qName = "id"; myLocalName = "id"; } else { // make this a pass through attribute qName = "h:" + myLocalName; ns = Namespace.h.uri; } } return TagAttributeUtilities.createTagAttribute(location, ns, myLocalName, qName, value); } }
protected TagAttribute convertTagAttribute(TagAttribute attribute) { Location location = attribute.getLocation(); String ns = attribute.getNamespace(); String myLocalName = attribute.getLocalName(); String qName; String value = attribute.getValue(); if (Namespace.jsf.uri.equals(attribute.getNamespace())) { // make this a component attribute qName = myLocalName; ns = ""; } else { if (ns.length() != 0 && !ns.equals(attribute.getTag().getNamespace())) { // the attribute has a different namespace than the tag. // preserve it. return attribute; } if (attribute.getLocalName().equals(otherHtmlIdAttribute)) { // special case for input name qName = "id"; myLocalName = "id"; } else { // make this a pass through attribute qName = "h:" + myLocalName; ns = Namespace.h.uri; } } return TagAttributeUtilities.createTagAttribute(location, ns, myLocalName, qName, value); } }