com.mentata.sg8
Class PaginationTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
com.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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PaginationTag
public PaginationTag()
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