Anil-- You're right that the documentation isn't very clear about this -- the "simple-pager-jumptopage.jsp" is the destination for the form submit that handles changing the page. In a simple case, it should just be the name of the JSP that has the data grid. In a more complex case, it might be a Page Flow action.
For example, if your page with the data grid is called "foo.jsp", just set that to action="foo.jsp" to send the request back to that page. Hope that helps. Eddie On Jan 15, 2008 6:17 AM, anil kumar <[EMAIL PROTECTED]> wrote: > Hi > In http://beehive.apache.org/docs/1.0.2/netui/tags/datagrid.html, > The following example builds a custom pager that provides "jump to page" > functionality via an HTML select box, for example: > > <netui-data:dataGrid dataSource="pageScope.pets" name="pets"> > <netui-data:configurePager defaultPageSize="2" > pagerFormat="firstPrevNextLast" disableDefaultPager="true"/> > <netui-data:header> > <netui-data:headerCell headerText="Name"/> > <netui-data:headerCell headerText="Description"/> > <netui-data:headerCell headerText="Price"/> > </netui-data:header> > <netui-data:rows> > <netui-data:spanCell value="${container.item.name}"/> > <netui-data:spanCell value="${container.item.description}"/> > <netui-data:spanCell value="${container.item.price}"/> > </netui-data:rows> > <netui-data:footer> > <td colspan="2" align="left"> > <netui-data:renderPager/> > </td> > <td colspan="1" align="right"> > <c:if test="${dataGrid.dataSet.size > 0}"> > <form name="pageForm" action="*simple-pager-jumptopage.jsp* > "> > Jump to Page: > <script type="text/javascript"> > function doPagerSubmit(comp) > { > var form = document.forms["pageForm"]; > form.method="GET"; > form.submit(); > } > </script> > <select name="${dataGrid.urlBuilder.pagerRowQueryParamKey}" > onchange="doPagerSubmit(this); return true;"> > <netui-data:repeater dataSource=" > dataGrid.urlBuilder.pagerParamValues"> > <c:choose> > <c:when test="${container.index == > dataGrid.state.pagerModel.page}"> > <option value="${container.item}" > selected="true">${container.index+1}</option> > </c:when> > <c:otherwise> > <option value="${container.item}">${ > container.index+1}</option> > </c:otherwise> > </c:choose> > </netui-data:repeater> > </select> > </c:if> > </td> > </netui-data:footer> > </netui-data:dataGrid> > > > But in this code there is nothing mentioned abt "* > simple-pager-jumptopage.jsp*", while i'm trying to implement this code, but > it is not working... Can you please help me what is * > simple-pager-jumptopage.jsp. *why we need to use that...? > > > Thanks & Regards > Anil Kumar >
