views:

207

answers:

1

Hi! I have a Groovy application. I am rendering the view list using the following statement:

render (view: 'list', model:[reportingInstanceList: reportingInstanceList, reportingInstanceTotal: i, params: params])

The list.gsp is as follows:

The view is rendered but the default sorting is not working.

<g:sortableColumn class="tabtitle" property="id" title="Id" titleKey="reporting.id" />
<g:sortableColumn class="tabtitle" property="company" title="Company" titleKey="reporting.company" />

Unfortunately the default sorting (by id, by company, etc) are not working. Any hint why?

Thanks a lot in advance.

Luis

+3  A: 
John Kinzie
To add: if you use dynamic finders or other GORM methods, you can just pass params object into them (i.e. Account.list(params)).
Jean Barmash
Thanks for your comment. I will try this later.
Luixv
OK, thanks. Now it works.
Luixv
Glad to hear that it works.
John Kinzie