com.tonbeller.wcf.scroller
Class ScrollerTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.tonbeller.wcf.scroller.ScrollerTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

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

Adds hidden fields to a form in a jsp that ensure that the browser keeps the scroll position when a user is navigating. This tag only works if the scroller.js javascript file is added to the page.

By default scrolling is disabled. A request handler should enable the scroller (@link com.tonbeller.wcf.scroller.Scroller) if its action requires keeping the scroll position

See Also:
Serialized Form

Field Summary
 
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
ScrollerTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, 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
 

Constructor Detail

ScrollerTag

public ScrollerTag()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException