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, setRenderedaddChild, 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, setupResponseWriterprotected 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.UIComponentClassicTagBasejavax.servlet.jsp.JspExceptionpublic 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.TagdoStartTag in class javax.faces.webapp.UIComponentClassicTagBasejavax.servlet.jsp.JspExceptionpublic 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.IterationTagdoAfterBody in class javax.faces.webapp.UIComponentClassicTagBasejavax.servlet.jsp.JspExceptionpublic 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.TagdoEndTag in class javax.faces.webapp.UIComponentClassicTagBasejavax.servlet.jsp.JspExceptionpublic java.lang.String getComponentType()
getComponentType in class javax.faces.webapp.UIComponentTagBasepublic java.lang.String getRendererType()
getRendererType in class javax.faces.webapp.UIComponentTagBaseprotected int getDoEndValue()
throws javax.servlet.jsp.JspException
getDoEndValue in class javax.faces.webapp.UIComponentClassicTagBasejavax.servlet.jsp.JspExceptionprotected void setProperties(javax.faces.component.UIComponent component)
setProperties in class javax.faces.webapp.UIComponentELTagprotected 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.