Groovy: Sorting Columns in a view: list

Posted by Luixv on Stack Overflow See other posts from Stack Overflow or by Luixv
Published on 2009-12-18T16:22:34Z Indexed on 2013/06/28 16:22 UTC
Read the original article Hit count: 233

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about grails

Related posts about listview