Deprecated
Use of this class has been replaced with UIComponentELTag, which extends
UIComponentClassicTagBase to add properties that use the
EL API introduced as part of JSP 2.1.
UIComponentTag is the base class for all JSP custom
actions that correspond to user interface components in a page that is
rendered by JavaServer Faces.
In this version of the specification, UIComponentTag
extends UIComponentClassicTagBase to add properties that use
the Faces 1.1 Expression Language.
| Modifier and Type | Class and Description |
|---|---|
| private static class | UIComponentTag.UIComponentTagAdapter
Deprecated
as a consequence of This adatper exposes a UIComponentClassicTagBase as a UIComponentTag
for 1.1 component libraries that rely on UIComponent.getParentUIComponentTag().
UIComponentTag being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| private String | binding
The value binding expression (if any) used to wire up this component
to a |
| private String | rendered
An override for the rendered attribute associated with our
|
| private boolean | suppressed
Flag indicating whether or not rendering should occur. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected UIComponent | createComponent(FacesContext
FacesContext for the current requestid of the component newId)Implements abstract javax. Implement |
| public static UIComponentTag | Returns: the parent tagPageContext for the current page
Deprecated
as a consequence of
UIComponentTag being deprecated.
Locate and return the nearest enclosing |
| protected boolean | hasBinding()
Implements abstract javax. Return |
| protected boolean | |
| public static boolean | Returns: whether or not this value has the correct syntax for a value binding expressionThe value to evaluate value)Return |
| public void | release()
Overrides javax. Implements javax. Release any resources allocated during the execution of this tag handler. |
| public void | setBinding(String
The new value binding expression binding)Set the value binding expression for our component. |
| protected void | setProperties(UIComponent
UIComponent whose properties are to be
overriddenImplements abstract javax. Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set. |
| public void | setRendered(String
The new value for rendered attribute rendered)Set an override for the rendered attribute. |
| binding | back to summary |
|---|---|
| private String binding The value binding expression (if any) used to wire up this component
to a | |
| rendered | back to summary |
|---|---|
| private String rendered An override for the rendered attribute associated with our
| |
| suppressed | back to summary |
|---|---|
| private boolean suppressed Flag indicating whether or not rendering should occur. | |
| UIComponentTag | back to summary |
|---|---|
| public UIComponentTag() | |
| createComponent | back to summary |
|---|---|
| protected UIComponent createComponent(FacesContext context, String newId) Implements abstract javax. Implement
| |
| getParentUIComponentTag | back to summary |
|---|---|
| public static UIComponentTag getParentUIComponentTag(PageContext context)
Deprecated as a consequence of Locate and return the nearest enclosing
| |
| hasBinding | back to summary |
|---|---|
| protected boolean hasBinding() Implements abstract javax. Doc from javax. Return
| |
| isSuppressed | back to summary |
|---|---|
| protected boolean isSuppressed() | |
| isValueReference | back to summary |
|---|---|
| public static boolean isValueReference(String value) Return
| |
| release | back to summary |
|---|---|
| public void release() Overrides javax. Implements javax. Release any resources allocated during the execution of this tag handler.
| |
| setBinding | back to summary |
|---|---|
| public void setBinding(String binding) throws JspException Set the value binding expression for our component.
| |
| setProperties | back to summary |
|---|---|
| protected void setProperties(UIComponent component) Implements abstract javax. Doc from javax. 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 Tag subclasses that want to support additional set properties
must ensure that the base class
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:
| |
| setRendered | back to summary |
|---|---|
| public void setRendered(String rendered) Set an override for the rendered attribute.
| |
Deprecated
as a consequence of UIComponentTag being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv UIComponentClassicTagBase |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | doEndTag()
Overrides javax. Implements javax. |
| public int | doStartTag()
Overrides javax. Implements javax. |
| public UIComponent | getComponentInstance()
Overrides javax. Return the |
| public String | getComponentType()
Implements abstract javax. Return the component type for the component that is or will be bound to this tag. |
| public boolean | getCreated()
Overrides javax. Return |
| public Tag | getParent()
Overrides javax. Implements javax. |
| public String | getRendererType()
Implements abstract javax. Return the |
| public void | setParent(Tag
The parent tag, or null. parent)Overrides javax. Implements javax. |
| classicDelegate | back to summary |
|---|---|
| pack-priv UIComponentClassicTagBase classicDelegate | |
| UIComponentTagAdapter | back to summary |
|---|---|
| public UIComponentTagAdapter(UIComponentClassicTagBase classicDelegate) | |
| doEndTag | back to summary |
|---|---|
| public int doEndTag() throws JspException Overrides javax. Implements javax. Doc from javax. Process the end tag for this instance. This method is invoked by the JSP page implementation object on all Tag handlers. This method will be called after returning from doStartTag. The body of the action may or may not have been evaluated, depending on the return value of doStartTag. If this method returns EVAL_PAGE, the rest of the page continues to be evaluated. If this method returns SKIP_PAGE, the rest of the page is not evaluated, the request is completed, and the doEndTag() methods of enclosing tags are not invoked. If this request was forwarded or included from another page (or Servlet), only the current page evaluation is stopped. The JSP container will resynchronize the values of any AT_BEGIN and AT_END variables (defined by the associated TagExtraInfo or TLD) after the invocation of doEndTag().
| |
| doStartTag | back to summary |
|---|---|
| public int doStartTag() throws JspException Overrides javax. Implements javax. Doc from javax. Process the start tag for this instance. This method is invoked by the JSP page implementation object. The doStartTag method assumes that the properties pageContext and parent have been set. It also assumes that any properties exposed as attributes have been set too. When this method is invoked, the body has not yet been evaluated. This method returns Tag.EVAL_BODY_INCLUDE or BodyTag.EVAL_BODY_BUFFERED to indicate that the body of the action should be evaluated or SKIP_BODY to indicate otherwise. When a Tag returns EVAL_BODY_INCLUDE the result of evaluating the body (if any) is included into the current "out" JspWriter as it happens and then doEndTag() is invoked. BodyTag.EVAL_BODY_BUFFERED is only valid if the tag handler implements BodyTag. The JSP container will resynchronize the values of any AT_BEGIN and NESTED variables (defined by the associated TagExtraInfo or TLD) after the invocation of doStartTag(), except for a tag handler implementing BodyTag whose doStartTag() method returns BodyTag.EVAL_BODY_BUFFERED.
| |
| getComponentInstance | back to summary |
|---|---|
| public UIComponent getComponentInstance() Overrides javax. Doc from javax. Return the
| |
| getComponentType | back to summary |
|---|---|
| public String getComponentType() Implements abstract javax. Doc from javax. Return the component type for the component that is or will be
bound to this tag. This value can be passed to
| |
| getCreated | back to summary |
|---|---|
| public boolean getCreated() Overrides javax. Doc from javax. Return
| |
| getParent | back to summary |
|---|---|
| public Tag getParent() Overrides javax. Implements javax. Doc from javax. Get the parent (closest enclosing tag handler) for this tag handler. The getParent() method can be used to navigate the nested tag handler structure at runtime for cooperation among custom actions; for example, the findAncestorWithClass() method in TagSupport provides a convenient way of doing this. The current version of the specification only provides one formal way of indicating the observable type of a tag handler: its tag handler implementation class, described in the tag-class subelement of the tag element. This is extended in an informal manner by allowing the tag library author to indicate in the description subelement an observable type. The type should be a subtype of the tag handler implementation class or void. This addititional constraint can be exploited by a specialized container that knows about that specific tag library, as in the case of the JSP standard tag library. | |
| getRendererType | back to summary |
|---|---|
| public String getRendererType() Implements abstract javax. Doc from javax. Return the | |
| setParent | back to summary |
|---|---|
| public void setParent(Tag parent) Overrides javax. Implements javax. Doc from javax. Set the parent (closest enclosing tag handler) of this tag handler. Invoked by the JSP page implementation object prior to doStartTag(). This value is *not* reset by doEndTag() and must be explicitly reset by a page implementation. | |