HI..
I'm working on a grails project and it's domain classes structure as follows.
Category domain class (which has many organizations) Organization domain class (which has many other information)
My problem comes with above 2 domain classes.
After i add one category, it has the ability to add more organizations for that. And that is possible as i want.
For eg. say I add the category ="Ministries" And that Ministries category has many organizations , such as Fisheries ministry Finance ministry etc.
When i go to the show.gsp of Ministries, it list down all the organization it has. Since there can be more that 1000 organizations in a one
category, it is not good to list down all the organizations for one category at once. Hence i need to have a table with paginate buttons in the show.gsp, then it would show first 20 organizations in the first page and others can be shown by paginate through the buttons. (similar thing in the list.gsp)
as i notices, list.gsp of a domain class have such kind of table with paginate buttons needs the help of the controller of that domain class as well. because list action of the domain class specifies the no of items to paginate.
so, i need to know how to have that in the show.gsp while changing the controller according to that.
please help me, if any one can
regards kumudu
|
Get your new Email address!
Grab the Email name you've always wanted before someone else does!