Quantcast

paginate tag UrlCreatorCache problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

paginate tag UrlCreatorCache problem

pmcneil
I have come across a problem with the paginate tag (grails 1.3.5) -
passing search parameters in the params attribute has issues when a
parameter in the map is a List.

The UrlCreatorCache misses changes in the List values and returns the
cached value.

so code like this <g:paginate params="[checked : ['v1','v2','v3']]"
total="${resultsTotal}" />

will cache the link, then if you call paginate again e.g.

<g:paginate params="[checked : ['v1','v2']]" total="${resultsTotal}" />

you will get the first link and params.

Quick search of JIRA doesn't look like this issue has been raised and open.

--

web: http://nerderg.com
Twitter: http://twitter.com/pmcneil


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: paginate tag UrlCreatorCache problem

Lari Hotari
19.01.2011 11:59, Peter McNeil wrote:

> I have come across a problem with the paginate tag (grails 1.3.5) -
> passing search parameters in the params attribute has issues when a
> parameter in the map is a List.
>
> The UrlCreatorCache misses changes in the List values and returns the
> cached value.
>
> so code like this <g:paginate params="[checked : ['v1','v2','v3']]"
> total="${resultsTotal}" />
>
> will cache the link, then if you call paginate again e.g.
>
> <g:paginate params="[checked : ['v1','v2']]" total="${resultsTotal}" />
>
> you will get the first link and params.
>
> Quick search of JIRA doesn't look like this issue has been raised and
> open.
>

http://jira.codehaus.org/browse/GRAILS-7096 , fixed. Fix will be
released in 1.3.7. .

Lari

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...