org.apache.myfaces.custom.scope
Class ScopeTag

java.lang.Object
  extended by javax.faces.webapp.UIComponentTag
      extended by org.apache.myfaces.shared_tomahawk.taglib.UIComponentTagBase
          extended by org.apache.myfaces.custom.scope.ScopeTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ScopeTag
extends org.apache.myfaces.shared_tomahawk.taglib.UIComponentTagBase

A class very similar to savestate it allows to defined scopes for variables between session and request, so that you can traverse parameters over forms within sessions but you do not have the full session lifecycle the main advantage over SaveState for this one is, that you do not have to make the objects serializable, the main disadvantage is, scopes need session ram for the time of existence

Version:
$Revision$ $Date$
Author:
Werner Punz werpu@gmx.at

Field Summary
 
Fields inherited from class javax.faces.webapp.UIComponentTag
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ScopeTag()
           
 
Method Summary
 java.lang.String getComponentType()
           
 java.lang.String getRendererType()
          we do not render anything, hence the renderer type results in a plain null
 void release()
          standard release
protected  void setProperties(javax.faces.component.UIComponent component)
          standard setProperties
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.taglib.UIComponentTagBase
setActionListenerProperty, setActionProperty, setBooleanProperty, setConverter, setForceId, setForceIdIndex, setImageLocation, setIntegerProperty, setJavascriptLocation, setLongProperty, setStringProperty, setStyleLocation, setValidatorProperty, setValue, setValueBinding, setValueChangedListenerProperty
 
Methods inherited from class javax.faces.webapp.UIComponentTag
doEndTag, doStartTag, encodeBegin, encodeChildren, encodeEnd, findComponent, getComponentInstance, getCreated, getDoEndValue, getDoStartValue, getFacesContext, getFacetName, getId, getParent, getParentUIComponentTag, isSuppressed, isValueReference, setBinding, setId, setPageContext, setParent, setRendered, setupResponseWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeTag

public ScopeTag()
Method Detail

getComponentType

public java.lang.String getComponentType()
Specified by:
getComponentType in class javax.faces.webapp.UIComponentTag
Returns:
the component type

setProperties

protected void setProperties(javax.faces.component.UIComponent component)
standard setProperties

Overrides:
setProperties in class org.apache.myfaces.shared_tomahawk.taglib.UIComponentTagBase

release

public void release()
standard release

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class org.apache.myfaces.shared_tomahawk.taglib.UIComponentTagBase

getRendererType

public java.lang.String getRendererType()
we do not render anything, hence the renderer type results in a plain null

Specified by:
getRendererType in class javax.faces.webapp.UIComponentTag


Copyright © 2009. All Rights Reserved.