Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ru.gammalabs.ice.frontend.web.taglib.navigation
Class RecordsNumberTag  view RecordsNumberTag download RecordsNumberTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byru.gammalabs.ice.frontend.web.taglib.navigation.RecordsNumberTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class RecordsNumberTag
extends javax.servlet.jsp.tagext.TagSupport

The tag prints out the number of records found by the enclosing PageableContainer tag, such as IEContainerTag or MessageListTag. The tag optionally exposes the number of records found via a scripting variable with the name specified using variableName tag attribute. It is illegal to use this tag outside of a PageableContainer tag (nothing will be printed out in this case).


Field Summary
private static org.apache.log4j.Category log
           
private  java.lang.String variableName
          The name of the scripting variable to be exposed.
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
RecordsNumberTag()
           
 
Method Summary
 int doStartTag()
          Default processing of the start tag, returning SKIP_BODY.
 java.lang.String getVariableName()
          Returns the name of the scripting variable.
 void setVariableName(java.lang.String variableName)
          Sets the name of the scripting variable.
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Category log

variableName

private java.lang.String variableName
The name of the scripting variable to be exposed.

Constructor Detail

RecordsNumberTag

public RecordsNumberTag()
Method Detail

getVariableName

public java.lang.String getVariableName()
Returns the name of the scripting variable.


setVariableName

public void setVariableName(java.lang.String variableName)
Sets the name of the scripting variable.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Description copied from class: javax.servlet.jsp.tagext.TagSupport
Default processing of the start tag, returning SKIP_BODY.