com.taggercat.template.tags
Class ForEachTableRowFieldTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.taggercat.template.tags.AbstractDataFieldTag
          extended by com.taggercat.template.tags.ForEachTableRowFieldTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class ForEachTableRowFieldTag
extends AbstractDataFieldTag

This tag is used to iterate over a list of fields that will make up a single tcEntity of an input table.

This tag is only valid as a child tag of the ForEachTableRow tag.

The ForEachTableRow tags determines the set of field named in each tcEntity. This tag then iterates over that list, and sets the fieldName attribute with corresponding to the current field.

If the padShortRows option was specified on the ForEachTableRow tag, then the fieldNames in the empty cells of short rows will be set to an empty string.

See Also:
Serialized Form
 

Nested Class Summary
 class ForEachTableRowFieldTag.LoopStatus
          Loop Status object
 
Field Summary
 
Fields inherited from class com.taggercat.template.tags.AbstractDataFieldTag
TAG_GEN_CONFIG_CACHE_KEY, TAG_GEN_CONFIG_PREFIX
 
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
ForEachTableRowFieldTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
          Sends the value of the data field to the page.
 java.lang.Object getCurrent()
          Gets the current busObjectAttribute object
 ForEachTableRowFieldTag.LoopStatus getLoopStatus()
          A singleton to get the loop status object associated with this tag
 void setVarStatus(java.lang.String statusId)
          Sets the 'varStatus' attribute.
 
Methods inherited from class com.taggercat.template.tags.AbstractDataFieldTag
setEntityName, setEntityObjectAttribute, setPrettyPrint, setPropertyName
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForEachTableRowFieldTag

public ForEachTableRowFieldTag()
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class AbstractDataFieldTag
Throws:
javax.servlet.jsp.JspException

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Description copied from class: AbstractDataFieldTag
Sends the value of the data field to the page.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class AbstractDataFieldTag
Throws:
javax.servlet.jsp.JspException
Returns:
SKIP_BODY

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

getLoopStatus

public ForEachTableRowFieldTag.LoopStatus getLoopStatus()
A singleton to get the loop status object associated with this tag

Returns:
the loop status object

getCurrent

public java.lang.Object getCurrent()
Gets the current busObjectAttribute object

Returns:
the current busObjectAttribute object

setVarStatus

public void setVarStatus(java.lang.String statusId)
Sets the 'varStatus' attribute.

Parameters:
statusId - Name of the exported scoped variable storing the status of the iteration.