com.esri.adf.web.faces.taglib
Class ContextTag

java.lang.Object
  extended by javax.faces.webapp.UIComponentTagBase
      extended by javax.faces.webapp.UIComponentClassicTagBase
          extended by javax.faces.webapp.UIComponentELTag
              extended by com.esri.adf.web.faces.taglib.ContextTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspIdConsumer, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ContextTag
extends javax.faces.webapp.UIComponentELTag

JSP tag for the ContextControl.


Field Summary
 
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
ContextTag()
          Initializes the tag.
 
Method Summary
 String getComponentType()
          Returns the component type string.
 String getRendererType()
          Returns the type of renderer.
 void release()
          Resets the attribute values to defaults.
 void setPreserve(javax.el.ValueExpression preserve)
          Sets whether or not the previous context should be preserved when the resource is switched.
protected  void setProperties(javax.faces.component.UIComponent component)
          Sets the attributes of the ContextControl from the tag attributes.
 void setValue(javax.el.ValueExpression value)
          Sets the value binding expression for the context.
 
Methods inherited from class javax.faces.webapp.UIComponentELTag
createComponent, getELContext, hasBinding, setBinding, setRendered
 
Methods inherited from class javax.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
 
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
doEndTag, doStartTag, getParent, setPageContext, setParent
 

Constructor Detail

ContextTag

public ContextTag()
Initializes the tag.

Method Detail

release

public void release()
Resets the attribute values to defaults.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.faces.webapp.UIComponentELTag

getComponentType

public String getComponentType()
Returns the component type string.

Specified by:
getComponentType in class javax.faces.webapp.UIComponentTagBase
Returns:
String- the component-type as defined in the faces-config.xml file

getRendererType

public String getRendererType()
Returns the type of renderer.

Specified by:
getRendererType in class javax.faces.webapp.UIComponentTagBase
Returns:
String- a null string indicating the ContextControl has no renderer

setProperties

protected void setProperties(javax.faces.component.UIComponent component)
Sets the attributes of the ContextControl from the tag attributes.

Overrides:
setProperties in class javax.faces.webapp.UIComponentELTag
Parameters:
component - the component to override properties

setValue

public void setValue(javax.el.ValueExpression value)
Sets the value binding expression for the context. The expression must evaluate to a WebContext.

Parameters:
value - the value binding expression for the context

setPreserve

public void setPreserve(javax.el.ValueExpression preserve)
Sets whether or not the previous context should be preserved when the resource is switched.

Parameters:
preserve - if true, the context is preserved.