org.apache.myfaces.tobago.taglib.component
Class ForEachTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.myfaces.tobago.taglib.component.ForEachTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, HasVar

Deprecated.

@Deprecated
public class ForEachTag
extends BodyTagSupport
implements HasVar

Replacement for the JSTL <c:foreach> tag.
This tags iterates over the body content without setting up an exported scope variable, but replaces all occurrence's of var in TobagoTag's ValueBinding attributes.
All non TobagoTags are treated as they are, no replacement is done, and so no ability to use the var in el.

See Also:
Serialized Form

Nested Class Summary
static class ForEachTag.IterationHelper
          Deprecated.  
 
Field Summary
static String ALL
          Deprecated.  
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ForEachTag()
          Deprecated.  
 
Method Summary
 int doAfterBody()
          Deprecated.  
 int doStartTag()
          Deprecated.  
 ForEachTag.IterationHelper getIterationHelper()
          Deprecated.  
 void release()
          Deprecated.  
 void setBegin(String begin)
          Deprecated. Index at which the iteration begins.
 void setEnd(String end)
          Deprecated. Index at which the iteration stops.
 void setItems(String items)
          Deprecated. ValueBindingExpression pointing to a java.util.List, java.util.Map or Object[] of items to iterate over.
 void setStep(String step)
          Deprecated. Index increments every iteration by this value.
 void setVar(String var)
          Deprecated. Name of a request-scope attribute under which the model data for for each subobject is accessible.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
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

ALL

public static final String ALL
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

ForEachTag

public ForEachTag()
Deprecated. 
Method Detail

doStartTag

public int doStartTag()
               throws JspException
Deprecated. 
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
Deprecated. 
Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class BodyTagSupport
Throws:
JspException

release

public void release()
Deprecated. 
Specified by:
release in interface Tag
Overrides:
release in class BodyTagSupport

setItems

public void setItems(String items)
Deprecated. 
ValueBindingExpression pointing to a java.util.List, java.util.Map or Object[] of items to iterate over.


setVar

public void setVar(String var)
Deprecated. 
Description copied from interface: HasVar
Name of a request-scope attribute under which the model data for for each subobject is accessible.

Specified by:
setVar in interface HasVar

setBegin

public void setBegin(String begin)
Deprecated. 
Index at which the iteration begins.


setEnd

public void setEnd(String end)
Deprecated. 
Index at which the iteration stops. Defaults to items.length().


setStep

public void setStep(String step)
Deprecated. 
Index increments every iteration by this value.


getIterationHelper

public ForEachTag.IterationHelper getIterationHelper()
Deprecated. 


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.