public class DataTableTag extends UIComponentELTag
bodyContent, pageContext, UNIQUE_ID_PREFIX
log
Constructor and Description |
---|
DataTableTag() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Perform any processing necessary to handle the content
implications of CASE 3 in the class description.
|
int |
doStartTag()
Perform any processing necessary to find (or create) the
UIComponent instance in the view corresponding to this
tag instance in the page and, if and only if a component was
created, insert it into the tree at the proper location as
expected by the page author. |
String |
getComponentType()
Return the component type for the component that is or will be
bound to this tag.
|
String |
getDebugString() |
String |
getRendererType()
Return the
rendererType property that selects the
Renderer to be used for encoding this component, or
null to ask the component to render itself directly. |
void |
release()
Release any resources allocated during the execution of this
tag handler.
|
void |
setBgcolor(javax.el.ValueExpression bgcolor) |
void |
setBodyrows(javax.el.ValueExpression bodyrows) |
void |
setBorder(javax.el.ValueExpression border) |
void |
setCaptionClass(javax.el.ValueExpression captionClass) |
void |
setCaptionStyle(javax.el.ValueExpression captionStyle) |
void |
setCellpadding(javax.el.ValueExpression cellpadding) |
void |
setCellspacing(javax.el.ValueExpression cellspacing) |
void |
setColumnClasses(javax.el.ValueExpression columnClasses) |
void |
setDir(javax.el.ValueExpression dir) |
void |
setFirst(javax.el.ValueExpression first) |
void |
setFooterClass(javax.el.ValueExpression footerClass) |
void |
setFrame(javax.el.ValueExpression frame) |
void |
setHeaderClass(javax.el.ValueExpression headerClass) |
void |
setLang(javax.el.ValueExpression lang) |
void |
setOnclick(javax.el.ValueExpression onclick) |
void |
setOndblclick(javax.el.ValueExpression ondblclick) |
void |
setOnkeydown(javax.el.ValueExpression onkeydown) |
void |
setOnkeypress(javax.el.ValueExpression onkeypress) |
void |
setOnkeyup(javax.el.ValueExpression onkeyup) |
void |
setOnmousedown(javax.el.ValueExpression onmousedown) |
void |
setOnmousemove(javax.el.ValueExpression onmousemove) |
void |
setOnmouseout(javax.el.ValueExpression onmouseout) |
void |
setOnmouseover(javax.el.ValueExpression onmouseover) |
void |
setOnmouseup(javax.el.ValueExpression onmouseup) |
protected void |
setProperties(UIComponent component)
Override properties and attributes of the specified component,
if the corresponding properties of this tag handler instance were
explicitly set.
|
void |
setRole(javax.el.ValueExpression role) |
void |
setRowClass(javax.el.ValueExpression rowClass) |
void |
setRowClasses(javax.el.ValueExpression rowClasses) |
void |
setRows(javax.el.ValueExpression rows) |
void |
setRowStatePreserved(javax.el.ValueExpression rowStatePreserved) |
void |
setRules(javax.el.ValueExpression rules) |
void |
setStyle(javax.el.ValueExpression style) |
void |
setStyleClass(javax.el.ValueExpression styleClass) |
void |
setSummary(javax.el.ValueExpression summary) |
void |
setTitle(javax.el.ValueExpression title) |
void |
setValue(javax.el.ValueExpression value) |
void |
setVar(String _var) |
void |
setWidth(javax.el.ValueExpression width) |
createComponent, getELContext, hasBinding, setBinding, setRendered
addChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doAfterBody, doInitBody, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getFacesContext, getFacesJspId, getFacetName, getId, getIndexOfNextChildTag, getJspId, getParent, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setId, setJspId, setPageContext, setParent, setupResponseWriter
public void setFirst(javax.el.ValueExpression first)
public void setRowStatePreserved(javax.el.ValueExpression rowStatePreserved)
public void setRows(javax.el.ValueExpression rows)
public void setValue(javax.el.ValueExpression value)
public void setVar(String _var)
public void setBgcolor(javax.el.ValueExpression bgcolor)
public void setBodyrows(javax.el.ValueExpression bodyrows)
public void setBorder(javax.el.ValueExpression border)
public void setCaptionClass(javax.el.ValueExpression captionClass)
public void setCaptionStyle(javax.el.ValueExpression captionStyle)
public void setCellpadding(javax.el.ValueExpression cellpadding)
public void setCellspacing(javax.el.ValueExpression cellspacing)
public void setColumnClasses(javax.el.ValueExpression columnClasses)
public void setDir(javax.el.ValueExpression dir)
public void setFooterClass(javax.el.ValueExpression footerClass)
public void setFrame(javax.el.ValueExpression frame)
public void setHeaderClass(javax.el.ValueExpression headerClass)
public void setLang(javax.el.ValueExpression lang)
public void setOnclick(javax.el.ValueExpression onclick)
public void setOndblclick(javax.el.ValueExpression ondblclick)
public void setOnkeydown(javax.el.ValueExpression onkeydown)
public void setOnkeypress(javax.el.ValueExpression onkeypress)
public void setOnkeyup(javax.el.ValueExpression onkeyup)
public void setOnmousedown(javax.el.ValueExpression onmousedown)
public void setOnmousemove(javax.el.ValueExpression onmousemove)
public void setOnmouseout(javax.el.ValueExpression onmouseout)
public void setOnmouseover(javax.el.ValueExpression onmouseover)
public void setOnmouseup(javax.el.ValueExpression onmouseup)
public void setRole(javax.el.ValueExpression role)
public void setRowClass(javax.el.ValueExpression rowClass)
public void setRowClasses(javax.el.ValueExpression rowClasses)
public void setRules(javax.el.ValueExpression rules)
public void setStyle(javax.el.ValueExpression style)
public void setStyleClass(javax.el.ValueExpression styleClass)
public void setSummary(javax.el.ValueExpression summary)
public void setTitle(javax.el.ValueExpression title)
public void setWidth(javax.el.ValueExpression width)
public String getRendererType()
UIComponentTagBase
Return the rendererType
property that selects the
Renderer
to be used for encoding this component, or
null
to ask the component to render itself directly.
Subclasses must override this method to return the appropriate value.
getRendererType
in class UIComponentTagBase
public String getComponentType()
UIComponentTagBase
Return the component type for the component that is or will be
bound to this tag. This value can be passed to
Application.createComponent(java.lang.String)
to create
the UIComponent
instance for this tag. Subclasses must
override this method to return the appropriate value.
getComponentType
in class UIComponentTagBase
protected void setProperties(UIComponent component)
UIComponentELTag
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
in class UIComponentELTag
component
- UIComponent
whose properties are to be
overriddenpublic int doStartTag() throws javax.servlet.jsp.JspException
UIComponentClassicTagBase
Perform any processing necessary to find (or create) the
UIComponent
instance in the view corresponding to this
tag instance in the page and, if and only if a component was
created, insert it into the tree at the proper location as
expected by the page author. Secondarily, cause a transient
UIOutput
component to be created and placed in the tree
before the UIComponent
instance for
this tag. The value of this UIOutput
component must include anything covered by CASE 1
or
CASE 2
in the class description.
The default implementation, which is intended to be sufficient
for most components, implements this secondary requirement by
calling UIComponentClassicTagBase.getParentUIComponentClassicTagBase(javax.servlet.jsp.PageContext)
, and calling
UIComponentClassicTagBase.createVerbatimComponentFromBodyContent()
on the result.
It then adds the returned component to the tree before the
actual component for this tag instance instance by calling
UIComponentClassicTagBase.addVerbatimBeforeComponent(javax.faces.webapp.UIComponentClassicTagBase, javax.faces.component.UIComponent, javax.faces.component.UIComponent)
.
Before returning, the component is pushed onto the component
stack for this response to enable the UIComponentClassicTagBase.getParentUIComponentClassicTagBase(javax.servlet.jsp.PageContext)
method to work properly.
The flag value to be returned is acquired by calling the
getDoStartValue()
method, which tag subclasses may
override if they do not want the default value.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class UIComponentClassicTagBase
javax.servlet.jsp.JspException
- if an error occurspublic int doEndTag() throws javax.servlet.jsp.JspException
UIComponentClassicTagBase
Perform any processing necessary to handle the content implications of CASE 3 in the class description.
The default implementation, which is intended to be sufficient
for most components, calls UIComponentClassicTagBase.createVerbatimComponentFromBodyContent()
on this instance
and adds it as a child of the component for this tag's component
at the end of the child list. In addition, the following
housekeeping steps are taken.
UIComponent
the set of component
ids of child components created by UIComponentTag
instances the last time this page was processed (if any).
Compare it to the list of children created during this page
processing pass, and remove all children present in the old list
but not the new. Save the new list as a component attribute so
that it gets saved as part of the component's state.UIComponent
the set of facet names
of facets created by UIComponentTag
instances the last
time this page was processed (if any). Compare it to the list of
facets created during this page processing pass, and remove all
facets present in the old list but not the new. Save the new
list as a component attribute so that it gets saved as part of
the component's state.The flag value to be returned is acquired by calling the
getDoEndValue()
method, which tag subclasses may
override if they do not want the default value.
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class UIComponentClassicTagBase
javax.servlet.jsp.JspException
- if an error occurspublic void release()
UIComponentELTag
Release any resources allocated during the execution of this tag handler.
release
in interface javax.servlet.jsp.tagext.Tag
release
in class UIComponentELTag
public String getDebugString()
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.