@Override
public void doTag() throws JspException, IOException
{
JspTag parent = SimpleTagSupport.findAncestorWithClass(this, TableTagSupport.class);
if (parent != null)
{
TableTagSupport tag = (TableTagSupport) parent;
Table table = (Table) tag.getColumnar();
// Generate a new Pagination data-structure using the supplied query object
Pagination pagination = new Pagination(tag.getQuery(), isAsynchronous());
// Loop over all of the pages in the pagination
while (pagination.hasNext())
{
// Update the current Page to generate
current = pagination.next();
if (var != null)
{
this.getJspContext().setAttribute(var, current);
}
// Generate the pre HTML, marker, and post HTML for the current page
if (this.getJspBody() != null)
{
this.getJspBody().invoke(current.getWriter());
}
}
// Add the pagination structure to the table
table.setPagination(pagination);
}
}
PaginationTagSupport.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:Runway-SDK
作者:
评论列表
文章目录