public abstract class UIComponentClassicTagBase extends UIComponentTagBase implements javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.JspIdConsumer
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.jsp.tagext.BodyContent |
bodyContent |
protected javax.servlet.jsp.PageContext |
pageContext |
protected static String |
UNIQUE_ID_PREFIX |
log| Constructor and Description |
|---|
UIComponentClassicTagBase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChild(UIComponent child) |
protected void |
addFacet(String name) |
protected void |
addVerbatimAfterComponent(UIComponentClassicTagBase parentTag,
UIComponent verbatim,
UIComponent component)
Add verbatim as a sibling of _componentInstance in _componentInstance in the parent's child
list.
|
protected void |
addVerbatimBeforeComponent(UIComponentClassicTagBase parentTag,
UIComponent verbatimComp,
UIComponent component) |
protected abstract UIComponent |
createComponent(FacesContext context,
String newId) |
protected UIOutput |
createVerbatimComponent()
Creates a transient UIOutput using the Application, with the following characteristics:
|
protected UIComponent |
createVerbatimComponentFromBodyContent()
Creates a UIComponent from the BodyContent
|
int |
doAfterBody() |
int |
doEndTag() |
void |
doInitBody() |
int |
doStartTag() |
protected void |
encodeBegin()
Invoke encodeBegin on the associated UIComponent.
|
protected void |
encodeChildren()
Invoke encodeChildren on the associated UIComponent.
|
protected void |
encodeEnd()
Invoke encodeEnd on the associated UIComponent.
|
protected UIComponent |
findComponent(FacesContext context)
Return the corresponding UIComponent for this tag, creating it if necessary.
|
javax.servlet.jsp.tagext.BodyContent |
getBodyContent() |
UIComponent |
getComponentInstance()
Return the UIComponent instance associated with this tag.
|
boolean |
getCreated() |
protected List<String> |
getCreatedComponents() |
protected int |
getDoAfterBodyValue() |
protected int |
getDoEndValue()
Get the value to be returned by the doEndTag method to the JSP framework.
|
protected int |
getDoStartValue()
Get the value to be returned by the doStartTag method to the JSP framework.
|
protected FacesContext |
getFacesContext() |
protected String |
getFacesJspId() |
protected String |
getFacetName() |
protected String |
getId()
Return the id (if any) specified as an xml attribute on this tag.
|
protected int |
getIndexOfNextChildTag() |
String |
getJspId() |
javax.servlet.jsp.tagext.Tag |
getParent()
Returns the enclosing JSP tag object.
|
static UIComponentClassicTagBase |
getParentUIComponentClassicTagBase(javax.servlet.jsp.PageContext pageContext) |
javax.servlet.jsp.JspWriter |
getPreviousOut() |
protected abstract boolean |
hasBinding() |
void |
release() |
void |
setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent) |
void |
setId(String id) |
void |
setJspId(String jspId) |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Standard method invoked by the JSP framework to inform this tag of the PageContext associated with the jsp page
currently being processed.
|
void |
setParent(javax.servlet.jsp.tagext.Tag tag)
Standard method invoked by the JSP framework to inform this tag of the enclosing JSP tag object.
|
protected abstract void |
setProperties(UIComponent component) |
protected void |
setupResponseWriter()
Deprecated.
the ResponseWriter is now set by
ViewHandler.renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot) |
getComponentType, getELContext, getRendererTypeprotected static final String UNIQUE_ID_PREFIX
protected javax.servlet.jsp.PageContext pageContext
protected javax.servlet.jsp.tagext.BodyContent bodyContent
protected abstract void setProperties(UIComponent component)
protected abstract UIComponent createComponent(FacesContext context, String newId) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagpublic boolean getCreated()
getCreated in class UIComponentTagBasepublic static UIComponentClassicTagBase getParentUIComponentClassicTagBase(javax.servlet.jsp.PageContext pageContext)
public String getJspId()
public void setJspId(String jspId)
setJspId in interface javax.servlet.jsp.tagext.JspIdConsumerprotected void addChild(UIComponent child)
addChild in class UIComponentTagBaseprotected void addFacet(String name)
addFacet in class UIComponentTagBasepublic UIComponent getComponentInstance()
getComponentInstance in class UIComponentTagBaseprotected FacesContext getFacesContext()
getFacesContext in class UIComponentTagBaseprotected int getIndexOfNextChildTag()
getIndexOfNextChildTag in class UIComponentTagBasepublic void setId(String id)
setId in class UIComponentTagBaseprotected String getId()
protected String getFacesJspId()
public void setBodyContent(javax.servlet.jsp.tagext.BodyContent bodyContent)
setBodyContent in interface javax.servlet.jsp.tagext.BodyTagpublic void doInitBody()
throws javax.servlet.jsp.JspException
doInitBody in interface javax.servlet.jsp.tagext.BodyTagjavax.servlet.jsp.JspExceptionpublic int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagjavax.servlet.jsp.JspExceptionpublic void setPageContext(javax.servlet.jsp.PageContext pageContext)
setPageContext in interface javax.servlet.jsp.tagext.Tagpublic javax.servlet.jsp.tagext.Tag getParent()
getParent in interface javax.servlet.jsp.tagext.Tagpublic void setParent(javax.servlet.jsp.tagext.Tag tag)
setParent in interface javax.servlet.jsp.tagext.Tagpublic javax.servlet.jsp.tagext.BodyContent getBodyContent()
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionprotected int getDoAfterBodyValue()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected int getDoStartValue()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected int getDoEndValue()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionprotected String getFacetName()
protected UIComponent createVerbatimComponentFromBodyContent()
protected UIOutput createVerbatimComponent()
Creates a transient UIOutput using the Application, with the following characteristics:
componentType is javax.faces.HtmlOutputText.
transient is true.
escape is false.
id is FacesContext.getViewRoot().createUniqueId()
protected void addVerbatimBeforeComponent(UIComponentClassicTagBase parentTag, UIComponent verbatimComp, UIComponent component)
protected void addVerbatimAfterComponent(UIComponentClassicTagBase parentTag, UIComponent verbatim, UIComponent component)
Add verbatim as a sibling of _componentInstance in _componentInstance in the parent's child list. verbatim is added to the list at the position immediatly following _componentInstance.
protected void setupResponseWriter()
ViewHandler.renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)protected void encodeBegin()
throws IOException
IOExceptionprotected void encodeChildren()
throws IOException
IOExceptionprotected void encodeEnd()
throws IOException
IOExceptionprotected UIComponent findComponent(FacesContext context) throws javax.servlet.jsp.JspException
If this is not the first time this method has been called, then return the cached _componentInstance instance found last time.
If this is not the first time this view has been seen, then locate the existing _componentInstance using the id attribute assigned to this tag and return it. Note that this is simple for components with user-assigned ids. For components with generated ids, the "reattachment" relies on the fact that UIViewRoot will generate the same id values for tags in this page as it did when first generating the view. For this reason all JSF tags within a JSTL "c:if" are required to have explicitly-assigned ids.
Otherwise create the _componentInstance, populate its properties from the xml attributes on this JSP tag and attach it to its parent.
When a _componentInstance is found or created the parent JSP tag is also told that the _componentInstance has been "seen". When the parent tag ends it will delete any components which were in the view previously but have not been seen this time; see doEndTag for more details.
javax.servlet.jsp.JspExceptionprotected abstract boolean hasBinding()
public javax.servlet.jsp.JspWriter getPreviousOut()
Copyright © 2021 The Apache Software Foundation. All rights reserved.