Grails Pagination

341 views
Skip to first unread message

Shazi

unread,
Mar 26, 2010, 9:09:36 AM3/26/10
to Indian Groovy & Grails User Group
Hello all..!

I have a problem with grails pagination. i want to send the hidden
variable to <g:pagination> tag instead of "<g:paginate total="$
{categoryTotal}" params="${params}"/>" params="${params} tag. how to
do? may b some thing like

<div class="paginateButtons">
<g:hiddenField name="" value="${params}"/>
<g:paginate total="${tblcallsInstanceTotal}"/>
</div>


Regards
shazi

karthi

unread,
Mar 27, 2010, 5:07:47 AM3/27/10
to ig...@googlegroups.com
The only way to send parameters(hidden field, etc..) with <g:paginate> is by means of
<g:paginate  params=here_u_specify_params_to_send>.

see filterpane plugin source for examples,

if u are serious about sending params with g:paginate, modify the paginate tag library source and write custom code.

There might be other ways, too.
 

To unsubscribe from this group, send email to iggug+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

Yagnesh Chawda

unread,
Mar 27, 2010, 10:41:00 AM3/27/10
to Indian Groovy & Grails User Group
Hi,
Karthi is Right. And only reason for that is grails pagination
creates <a href /> tags for each page to do pagination which
essentially are gonna be simple GET request when u will click on it.
So any parameters that you keep as hidden or simple inputs of HTML
Form within which you may keep your Grails pagination tag, will still
not submit the Form.

On Mar 27, 2:07 pm, karthi <karthi4...@gmail.com> wrote:
> The only way to send parameters(hidden field, etc..) with <g:paginate> is by
> means of
> <g:paginate  params=here_u_specify_params_to_send>.
>
> see filterpane plugin source for examples,
>
> if u are serious about sending params with g:paginate, modify the paginate
> tag library source and write custom code.
>
> There might be other ways, too.
>

Shazi

unread,
Mar 29, 2010, 2:02:53 AM3/29/10
to ig...@googlegroups.com
Thanks, i m also thing about to write the custom tag for pagination.
I think this is the only way to pass hidden value to pagination.
Reply all
Reply to author
Forward
0 new messages