本文整理了Java中javax.faces.view.facelets.Tag.getNamespace()
方法的一些代码示例,展示了Tag.getNamespace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.getNamespace()
方法的具体详情如下:
包路径:javax.faces.view.facelets.Tag
类名称:Tag
方法名:getNamespace
[英]Return the resolved XML Namespace for this tag in the Facelets view.
[中]在Facelets视图中返回此标记的已解析XML命名空间。
代码示例来源:origin: org.apache.myfaces.core/myfaces-impl
@Override
protected MetaRuleset createMetaRuleset(Class type)
{
MetaRuleset meta = super.createMetaRuleset(type);
if (!UILibrary.NAMESPACE.equals(this.tag.getNamespace()) &&
!UILibrary.ALIAS_NAMESPACE.equals(this.tag.getNamespace()))
{
meta.add(new TagMetaData(type));
}
meta.alias("class", "styleClass");
return meta;
}
代码示例来源:origin: org.glassfish/javax.faces
@Override
protected MetaRuleset createMetaRuleset(Class type) {
MetaRuleset meta = super.createMetaRuleset(type);
String myNamespace = this.tag.getNamespace();
if ((!UILibrary.Namespace.equals(myNamespace)) &&
(!UILibrary.XMLNSNamespace.equals(myNamespace))) {
meta.add(new TagMetaData(type));
}
meta.alias("class", "styleClass");
return meta;
}
代码示例来源:origin: com.sun.faces/jsf-impl
@Override
protected MetaRuleset createMetaRuleset(Class type) {
MetaRuleset meta = super.createMetaRuleset(type);
String myNamespace = this.tag.getNamespace();
if ((!UILibrary.Namespace.equals(myNamespace)) &&
(!UILibrary.XMLNSNamespace.equals(myNamespace))) {
meta.add(new TagMetaData(type));
}
meta.alias("class", "styleClass");
return meta;
}
代码示例来源:origin: org.glassfish/jakarta.faces
@Override
protected MetaRuleset createMetaRuleset(Class type) {
MetaRuleset meta = super.createMetaRuleset(type);
String myNamespace = this.tag.getNamespace();
if ((!UILibrary.Namespace.equals(myNamespace)) &&
(!UILibrary.XMLNSNamespace.equals(myNamespace))) {
meta.add(new TagMetaData(type));
}
meta.alias("class", "styleClass");
return meta;
}
代码示例来源:origin: eclipse-ee4j/mojarra
@Override
protected MetaRuleset createMetaRuleset(Class type) {
MetaRuleset meta = super.createMetaRuleset(type);
String myNamespace = this.tag.getNamespace();
if ((!UILibrary.Namespace.equals(myNamespace)) &&
(!UILibrary.XMLNSNamespace.equals(myNamespace))) {
meta.add(new TagMetaData(type));
}
meta.alias("class", "styleClass");
return meta;
}
代码示例来源:origin: javax/javaee-web-api
/**
* 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);
}
代码示例来源:origin: org.apache.myfaces.core.internal/myfaces-shaded-impl
protected MetaRuleset createMetaRuleset(Class type)
{
MetaRuleset meta = super.createMetaRuleset(type);
if (!UILibrary.Namespace.equals(this.tag.getNamespace()))
{
meta.add(new TagMetaData(type));
}
meta.alias("class", "styleClass");
return meta;
}
代码示例来源:origin: javax.faces/javax.faces-api
/**
* 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);
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
public Tag(Tag orig, TagAttributes attributes)
{
this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig.getQName(), attributes);
}
代码示例来源:origin: org.glassfish/javax.faces
/**
* 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);
}
代码示例来源:origin: org.glassfish/jakarta.faces
/**
* 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);
}
代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl
protected MetaRuleset createMetaRuleset(Class type)
{
MetaRuleset meta = super.createMetaRuleset(type);
if (!UILibrary.Namespace.equals(this.tag.getNamespace()))
{
meta.add(new TagMetaData(type));
}
meta.alias("class", "styleClass");
return meta;
}
代码示例来源:origin: eclipse-ee4j/mojarra
/**
* 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);
}
代码示例来源:origin: com.sun.faces/jsf-api
public Tag(Tag orig, TagAttributes attributes) {
this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
.getQName(), attributes);
}
代码示例来源:origin: eclipse-ee4j/mojarra
/**
* 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);
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* 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);
}
代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec
public Tag(Tag orig, TagAttributes attributes) {
this(orig.getLocation(), orig.getNamespace(), orig.getLocalName(), orig
.getQName(), attributes);
}
代码示例来源:origin: net.bootsfaces/bootsfaces
private Tag convertBootsFacesTag(Tag tag) {
if (HTML_NAMESPACE.equals(tag.getNamespace())) {
String tagname = tag.getLocalName();
if (bootsfacesTags.containsKey(tagname)) {
AFTagAttributes modifiedAttributes = new AFTagAttributes(tag.getAttributes().getAll());
Tag t = new Tag(tag.getLocation(), BOOTSFACES_NAMESPACE, tag.getLocalName(), tag.getQName(),
modifiedAttributes);
return t;
}
}
return tag;
}
}
代码示例来源:origin: de.beyondjava/angularFaces-core
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;
}
代码示例来源:origin: de.beyondjava/angularFaces-core
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;
}
}
内容来源于网络,如有侵权,请联系作者删除!