com.mentata.sg8
Class PaginationTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.SimpleTagSupport
      extended bycom.mentata.sg8.PaginationTag
All Implemented Interfaces:
JspTag, SimpleTag

public class PaginationTag
extends SimpleTagSupport

A tag handler for adding buttons for pages of search results. This tag handler is used to produce a formatted table of page navigation for a search response matching many entries. It has a single action attribute for the populated SG8 search bean. The gateway list page uses the tag to add pagination to the display of appropriate search results.

Since:
0.7
Author:
Jon Roberts

Constructor Summary
PaginationTag()
           
 
Method Summary
 void doTag()
          Writes a series of links to gateway actions for the configured object and attribute.
 void setSearch(SG8Search search)
          Defines an search parameter for the tag context.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaginationTag

public PaginationTag()
Method Detail

setSearch

public void setSearch(SG8Search search)
Defines an search parameter for the tag context.

Parameters:
search - a populated SG8 search bean

doTag

public void doTag()
           throws IOException
Writes a series of links to gateway actions for the configured object and attribute.

Throws:
IOException - if there was an error writing to the output stream