- public int doEndTag()
-
Renders the end of the component the tag handler represents. If the
component's getRendersChildren()
method returns true, calls encodeBegin(
) and encodeChildren(), and calls
encodeEnd() independent on the
getRendersChildren() value. This method also
adjusts the children and facets for the component it represents, by
removing children and facets created by conditional portions of the
JSP page the last time it was processed but not processed this time.
- public int doStartTag()
-
Calls setupResponseWriter(), in case this is the
first tag handler in the page. Calls the findComponent(
) method to locate the component this tag handler
represents, creating it if it isn't already
available in the view. If a new component was created, add it as a
child of the component represented by the closest
UIComponentTag parent tag handler, if any, by
calling the parent's addChild()
method. Calls encodeBegin(), unless its
getRendersChildren() method returns
true.
- protected void encodeBegin()
-
Delegates the call to the component this tag handler represents.
- protected void encodeChildren()
-
Delegates the call to the component this tag handler represents.
- protected void encodeEnd()
-
Delegates the call to the component this tag handler represents.
- protected javax.faces.component.UIComponent findComponent(javax.faces.context.FacesContext context)
-
Locates or creates the component the tag handler represents. An
attempt to find the component is done by locating a parent
UIComponentTag tag handler and asking it for its
component. If this tag handler represents a facet, try to get a facet
with the same name from the parent, otherwise try to get a child
based on the component ID. If the component doesn't
exits, creates an instance of the type returned by
getComponentType(), calls setProperties(
) and adds the new component as a facet or child of the
parent.
- public javax.faces.component.UIComponent getComponentInstance()
-
Returns the component the tag handler represents, if called between
doStartTag() and doEndTag().
- public String getComponentType()
-
Returns the component type the tag handler represents.
- public boolean getCreated()
-
Returns true if the component instance was created
by this tag handler during the processing of this request.
- public int getDoEndValue()
-
Returns the value to return from doEndTag(), as
established by a subclass. This implementation returns
EVAL_PAGE.
- public int getDoStartValue()
-
Returns the value to return from doStartTag(), as
established by a subclass. This implementation returns
EVAL_BODY_INCLUDE.
- public javax.facet.context.FacesContext getFacetContext()
-
Returns the current FacetContext instance for the
request.
- protected String getFacetName()
-
Returns the name of the facet this tag handler represents or
null if it represents a regular child component.
- protected String getId()
-
Returns the id attribute value or
null if not set.
- public javax.servlet.jsp.tagext.Tag getParent()
-
Returns the parent tag handler or null if none.
- public static javax.facet.webapp.UIComponentTag getParentUIComponentTag(javax.facet.context.FacesContext context)
-
Returns the closest parent UIComponentTag tag
handler or null if none. This method uses a stack
to keep track of the nesting level, even between included pages
processed as part of the same request.
- public String getRendererType()
-
Returns the renderer type or null.
- protected boolean isSuppressed()
-
Returns true if the component is a facet, the
component's rendered property is
false, its parent's
rendersChildren property is
true, or the component's parent
returns true from this method.
- public static boolean isValueReference(String value)
-
Returns true if the value is a JSF EL expression,
i.e., is delimited by #{ and }.
- public void release()
-
Releases all references to acquired resources.
- public void setBinding(String binding)
-
Sets a component binding expression.
- public void SetId(String id)
-
Sets the id attribute value, to be used as the component ID for the
component represented by the tag header.
- public void setPageContext(javax.servlet.jsp.PageContext pageContext)
-
Sets the pageContext variable.
- public void setParent(javax.servlet.jsp.tagext.Tag parent)
-
Sets the parent for this tag handler.
- protected void setProperties(javax.facet.component.UIComponent parent)
-
Sets the component properties and attributes corresponding to the tag
handler's attributes. The default implementation
sets the componentId, binding,
rendered, and rendererType
properties. Subclasses must call this implementation before
processing the subclass-specific attributes.
- public void setRendered(String rendered)
-
Sets an explicit value or a JSF expression value for the
rendered property.
- protected void setupResponseWriter()
-
Unless it's been done already, sets up the
ResponseWriter for the current response.