grails - g:sortableColumn with complex associations -


so trying sort table of objects(deliverables). want use g:sortablecolumn each header(client, project, deliverable). trying implement solution found in blog http://sguthula.blogspot.com/2011/05/implementing-advanced-search-in-grails.html have had no success.

an example of associations follows:

class deliverable {     static belongsto = [project: project] }  class project {     client client     static hasmany = [deliverables: deliverable] }  class client {     string name     static hasmany = [projects: project] } 

in table trying order clients name.

<g:sortablecolumn property="name" title="${message(code: 'deliverable.project.client.name.label', default: 'client')}"></g:sortablecolumn> 

this 1 of more complex associations, if try sort project.name, results in deliverables each project being reordered rather whole list being reordered based on client or project names.

cheers assistance offered.

please can see , post inspection result on browser

1. goto inspect window , network  2. press `g:sortablecolumn` , see if posted or request ?   3. if yes , how can resolve issue , should ..see     object/parameteris passed     controller can play code.  4.if not syntax error please first try simple settings , correct      see how   works on 1,2,3 steps. 

cheers sure find solution !!


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -