Name

UIComponentTag

Synopsis

This class is a JSP tag handler base class that all JSF actions that represent a UIComponent instance that don’t need access to the element body evaluation result extend.

Synopsis

Class name:

javax.faces.webapp.UIComponentBodyTag

Extends:

None

Implements:

javax.servlet.jsp.tagext.Tag

Fields

protected javax.servlet.jsp.PageContext pageContext

The variable holding the PageContext for the JSP page.

Constructors

public UIComponentTag()

Creates an instance.

Methods

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() ...

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.