本文整理了Java中javax.faces.webapp.UIComponentClassicTagBase.setProperties()
方法的一些代码示例,展示了UIComponentClassicTagBase.setProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIComponentClassicTagBase.setProperties()
方法的具体详情如下:
包路径:javax.faces.webapp.UIComponentClassicTagBase
类名称:UIComponentClassicTagBase
方法名:setProperties
[英]Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. This method must be called ONLY if the specified UIComponent was in fact created during the execution of this tag handler instance, and this call will occur BEFORE the UIComponent is added to the view.
Tag subclasses that want to support additional set properties must ensure that the base class setProperties()
method is still called. A typical implementation that supports extra properties foo
and bar
would look something like this:
protected void setProperties(UIComponent component) {
super.setProperties(component);
if (foo != null) {
component.setAttribute("foo", foo);
}
if (bar != null) {
component.setAttribute("bar", bar);
}
}
The default implementation overrides the following properties:
rendered
- Set if a value for the rendered
property is specified for this tag handler instance.rendererType
- Set if the getRendererType()
method returns a non-null value.setProperties()
方法仍然被调用。支持额外属性foo
和bar
的典型实现如下所示:protected void setProperties(UIComponent component) {
super.setProperties(component);
if (foo != null) {
component.setAttribute("foo", foo);
}
if (bar != null) {
component.setAttribute("bar", bar);
}
}
默认实现会覆盖以下属性:
*rendered
-设置是否为此标记处理程序实例指定了rendered
属性的值。
*rendererType
-设置getRendererType()
方法是否返回非空值。
代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces
setProperties(_componentInstance);
setProperties(_componentInstance);
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
setProperties(_componentInstance);
setProperties(_componentInstance);
代码示例来源:origin: javax.faces/com.springsource.javax.faces
setProperties(parentComponent);
setProperties(parentComponent);
代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
代码示例来源:origin: org.glassfish/javax.faces
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
代码示例来源:origin: com.sun.faces/jsf-api
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
代码示例来源:origin: javax/javaee-web-api
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
代码示例来源:origin: eclipse-ee4j/mojarra
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
代码示例来源:origin: jboss/jboss-javaee-specs
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
代码示例来源:origin: javax.faces/javax.faces-api
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
代码示例来源:origin: org.glassfish/jakarta.faces
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
代码示例来源:origin: eclipse-ee4j/mojarra
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
} else if (hasBinding()) {
try {
setProperties(parentComponent);
} catch (FacesException e) {
if (e.getCause() instanceof JspException) {
内容来源于网络,如有侵权,请联系作者删除!