public class ViewTag
extends javax.faces.webapp.UIComponentELTag
Modifier and Type | Field and Description |
---|---|
protected javax.el.MethodExpression |
afterPhase |
protected javax.el.MethodExpression |
beforePhase |
protected javax.el.ValueExpression |
locale |
protected javax.el.ValueExpression |
renderKitId |
bodyContent, pageContext, UNIQUE_ID_PREFIX
Constructor and Description |
---|
ViewTag() |
Modifier and Type | Method and Description |
---|---|
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) |
createComponent, getELContext, hasBinding, release, setBinding, setRendered
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
protected javax.el.ValueExpression renderKitId
protected javax.el.ValueExpression locale
protected javax.el.MethodExpression beforePhase
protected javax.el.MethodExpression afterPhase
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 (???_???)."Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.