Of course u can do.
what you need to do is manually set parameters 'max' and 'offset' in the controller and pass in to the gsp.
In the gsp page,
//********************
<g:paginate action="listL1" total="${noOfRejected}" max="${rejectedMax}" offset="${rejectedOffset}" params="['cameFrom':'Rejected','draftMax':draftMax,'draftOffset':draftOffset]"/>
*************//
I encountered one problem when implementing two lists in one page, i.e. the paginate component pass the max parameter and offset parameter to the controller only in the name 'max' and 'offset'. What we need to do in the controller is identify from which list we came from and assign relevant max and offset values to the max and offset variables of two lists.
Hope this helps to your problem
sonuranju wrote
Hi All,
Can I use pagination two times in the same gsp.
I gave different totals depending upon the two list count.
but when i clicks next on one pagination link of the first list
then the second list also moves.
what my doubt is how can i set the params and offset parameters separelty to the <g:paginate> tag
Please help.
-Thanks.