|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.webapp.UIComponentTagBase
javax.faces.webapp.UIComponentClassicTagBase
javax.faces.webapp.UIComponentELTag
com.sun.faces.taglib.jsf_core.ViewTag
public class ViewTag
All JSF component tags must be nested within a f:view tag. This tag corresponds to the root of the UIComponent tree. It does not have a Renderer. It exists mainly to provide a guarantee that all faces components reside inside of this tag.
Field Summary | |
---|---|
protected javax.el.MethodExpression |
afterPhase
|
protected javax.el.MethodExpression |
beforePhase
|
protected javax.el.ValueExpression |
locale
|
protected javax.el.ValueExpression |
renderKitId
|
Fields inherited from class javax.faces.webapp.UIComponentClassicTagBase |
---|
bodyContent, pageContext, UNIQUE_ID_PREFIX |
Fields inherited from class javax.faces.webapp.UIComponentTagBase |
---|
log |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Constructor Summary | |
---|---|
ViewTag()
|
Method Summary | |
---|---|
int |
doAfterBody()
Examine the body content of this tag. |
int |
doEndTag()
Exercise a contract with the ViewHandler to get the
character encoding from the response and set it into the
session. |
int |
doStartTag()
Override parent doStartTag() to do the following: |
java.lang.String |
getComponentType()
This should never get called for PageTag. |
protected int |
getDoEndValue()
|
protected int |
getDoStartValue()
|
protected java.util.Locale |
getLocaleFromString(java.lang.String localeExpr)
Returns the locale represented by the expression. |
java.lang.String |
getRendererType()
|
void |
setAfterPhase(javax.el.MethodExpression newAfterPhase)
|
void |
setBeforePhase(javax.el.MethodExpression newBeforePhase)
|
void |
setLocale(javax.el.ValueExpression newLocale)
|
protected void |
setProperties(javax.faces.component.UIComponent component)
|
void |
setRenderKitId(javax.el.ValueExpression renderKitId)
|
Methods inherited from class javax.faces.webapp.UIComponentELTag |
---|
createComponent, getELContext, hasBinding, release, setBinding, setRendered |
Methods inherited from class javax.faces.webapp.UIComponentClassicTagBase |
---|
addChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doInitBody, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getFacesContext, getFacesJspId, getFacetName, getId, getIndexOfNextChildTag, getJspId, getParent, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setId, setJspId, setPageContext, setParent, setupResponseWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
protected javax.el.ValueExpression renderKitId
protected javax.el.ValueExpression locale
protected javax.el.MethodExpression beforePhase
protected javax.el.MethodExpression afterPhase
Constructor Detail |
---|
public ViewTag()
Method Detail |
---|
public void setRenderKitId(javax.el.ValueExpression renderKitId)
public void setLocale(javax.el.ValueExpression newLocale)
public void setBeforePhase(javax.el.MethodExpression newBeforePhase)
public void setAfterPhase(javax.el.MethodExpression newAfterPhase)
protected int getDoStartValue() throws javax.servlet.jsp.JspException
getDoStartValue
in class javax.faces.webapp.UIComponentClassicTagBase
javax.servlet.jsp.JspException
public int doStartTag() throws javax.servlet.jsp.JspException
Override parent doStartTag()
to do the following:
Get the WebResponseWrapper
from the
request, which was placed there by ViewHandler.renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)
, and call InterweavingResponse.flushContentToWrappedResponse()
. This
causes any content that appears before the view to be written out
to the response. This is necessary to allow proper ordering to
happen.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.faces.webapp.UIComponentClassicTagBase
javax.servlet.jsp.JspException
public int doAfterBody() throws javax.servlet.jsp.JspException
Examine the body content of this tag. If it is
non-null
, non-zero length, and not an HTML comment,
call UIComponentClassicTagBase.createVerbatimComponent()
.
Set the value of the verbatim component to be
content
.
Add this child to the end of the child list for
UIViewRoot
.
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.faces.webapp.UIComponentClassicTagBase
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
Exercise a contract with the ViewHandler
to get the
character encoding from the response and set it into the
session.
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.faces.webapp.UIComponentClassicTagBase
javax.servlet.jsp.JspException
public java.lang.String getComponentType()
getComponentType
in class javax.faces.webapp.UIComponentTagBase
public java.lang.String getRendererType()
getRendererType
in class javax.faces.webapp.UIComponentTagBase
protected int getDoEndValue() throws javax.servlet.jsp.JspException
getDoEndValue
in class javax.faces.webapp.UIComponentClassicTagBase
javax.servlet.jsp.JspException
protected void setProperties(javax.faces.component.UIComponent component)
setProperties
in class javax.faces.webapp.UIComponentELTag
protected java.util.Locale getLocaleFromString(java.lang.String localeExpr)
localeExpr
- a String in the format specified by JSTL Specification
as follows:
"A String value is interpreted as the printable
representation of a locale, which must contain a
two-letter (lower-case) language code (as defined by
ISO-639), and may contain a two-letter (upper-case)
country code (as defined by ISO-3166). Language and
country codes must be separated by hyphen (???-???) or
underscore (???_???)."
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |