Class FocusTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.BodyTag,jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspIdConsumer,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag
public class FocusTag extends UIComponentELTag
- Author:
- driscoll
-
Field Summary
Fields Modifier and Type Field Description jakarta.el.ValueExpressionforIDFields inherited from class jakarta.faces.webapp.UIComponentClassicTagBase
bodyContent, pageContext, UNIQUE_ID_PREFIX -
Constructor Summary
Constructors Constructor Description FocusTag() -
Method Summary
Modifier and Type Method Description StringgetComponentType()Return the component type for the component that is or will be bound to this tag.StringgetRendererType()Return therendererTypeproperty that selects theRendererto be used for encoding this component, ornullto ask the component to render itself directly.voidrelease()Release any resources allocated during the execution of this tag handler.voidsetFor(jakarta.el.ValueExpression forID)protected voidsetProperties(UIComponent component)Override properties and attributes of the specified component, if the corresponding properties of this tag handler instance were explicitly set.Methods inherited from class jakarta.faces.webapp.UIComponentELTag
createComponent, getELContext, hasBinding, setBinding, setRenderedMethods inherited from class jakarta.faces.webapp.UIComponentClassicTagBase
addChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doAfterBody, doEndTag, doInitBody, doStartTag, 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
-
Field Details
-
forID
public jakarta.el.ValueExpression forID
-
-
Constructor Details
-
FocusTag
public FocusTag()
-
-
Method Details
-
getComponentType
Description copied from class:UIComponentTagBaseReturn 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 theUIComponentinstance for this tag. Subclasses must override this method to return the appropriate value.- Specified by:
getComponentTypein classUIComponentTagBase- Returns:
- the component type
-
setProperties
Description copied from class:UIComponentELTagOverride 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
UIComponentwas in fact created during the execution of this tag handler instance, and this call will occur BEFORE theUIComponentis 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 propertiesfooandbarwould 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 therenderedproperty is specified for this tag handler instance.rendererType- Set if thegetRendererType()method returns a non-null value.
- Overrides:
setPropertiesin classUIComponentELTag- Parameters:
component-UIComponentwhose properties are to be overridden
-
getRendererType
Description copied from class:UIComponentTagBaseReturn the
rendererTypeproperty that selects theRendererto be used for encoding this component, ornullto ask the component to render itself directly. Subclasses must override this method to return the appropriate value.- Specified by:
getRendererTypein classUIComponentTagBase- Returns:
- the renderer type
-
release
public void release()Description copied from class:UIComponentELTagRelease any resources allocated during the execution of this tag handler.
- Specified by:
releasein interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
releasein classUIComponentELTag
-
setFor
public void setFor(jakarta.el.ValueExpression forID)
-