Quantcast

Display only few items per page

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

Display only few items per page

kumudu

In my project i need to view only few items per page, since it contains around 300 items.
It's like this.
I have domain class called 'Category' and 'Organization'
One category has many organizations. There one category can have around 200 or 300 organizations. So when go to show.gsp of a category it list down all the organization it owns. But i need to list only 20 organization and then have a link to go to next 20 organization and so on. (like page by page)
how can i do it.

regards
kumudu


New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Display only few items per page

Paul Bowler
Kumudu,

You're probably best looking at the examples given in the scaffolding code for any domain:

grails create-domain-class xxxx
grails generate-all xxxx

This will show you what you need to know in the 'list' method and views.

Regards,

Paul.
 
View Paul Bowler's profile on LinkedIn



From: kumudu Samarappuli <[hidden email]>
To: grails codehaus <[hidden email]>
Sent: Tuesday, 27 January, 2009 11:38:24
Subject: [grails-user] Display only few items per page


In my project i need to view only few items per page, since it contains around 300 items.
It's like this.
I have domain class called 'Category' and 'Organization'
One category has many organizations. There one category can have around 200 or 300 organizations. So when go to show.gsp of a category it list down all the organization it owns. But i need to list only 20 organization and then have a link to go to next 20 organization and so on. (like page by page)
how can i do it.

regards
kumudu


New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!

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

Re: Display only few items per page

kumudu

no...i don't want display as that in the list view. I want to display as in the show view of a category. In the list view of organization it list all organization for all the categories (not for particular category)
so, give me solution to view few items per page in the show.gsp.

regards
kumudu


--- On Tue, 27/1/09, Paul Bowler <[hidden email]> wrote:
From: Paul Bowler <[hidden email]>
Subject: Re: [grails-user] Display only few items per page
To: [hidden email]
Date: Tuesday, 27 January, 2009, 11:44 AM

Kumudu,

You're probably best looking at the examples given in the scaffolding code for any domain:

grails create-domain-class xxxx
grails generate-all xxxx

This will show you what you need to know in the 'list' method and views.

Regards,

Paul.
 
View Paul Bowler's profile on LinkedIn



From: kumudu Samarappuli <[hidden email]>
To: grails codehaus <[hidden email]>
Sent: Tuesday, 27 January, 2009 11:38:24
Subject: [grails-user] Display only few items per page


In my project i need to view only few items per page, since it contains around 300 items.
It's like this.
I have domain class called 'Category' and 'Organization'
One category has many organizations. There one category can have around 200 or 300 organizations. So when go to show.gsp of a category it list down all the organization it owns. But i need to list only 20 organization and then have a link to go to next 20 organization and so on. (like page by page)
how can i do it.

regards
kumudu


New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!



New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Display only few items per page

Paul Bowler
There are many solutions for this (Ajax, new controller method) and you'll need to decide the best route given the context of your application.

The basic operation of pagination will be as described in my previous reply.

Regards,

Paul.



From: kumudu Samarappuli <[hidden email]>
To: [hidden email]
Sent: Tuesday, 27 January, 2009 11:48:38
Subject: Re: [grails-user] Display only few items per page


no...i don't want display as that in the list view. I want to display as in the show view of a category. In the list view of organization it list all organization for all the categories (not for particular category)
so, give me solution to view few items per page in the show.gsp.

regards
kumudu


--- On Tue, 27/1/09, Paul Bowler <[hidden email]> wrote:
From: Paul Bowler <[hidden email]>
Subject: Re: [grails-user] Display only few items per page
To: [hidden email]
Date: Tuesday, 27 January, 2009, 11:44 AM

Kumudu,

You're probably best looking at the examples given in the scaffolding code for any domain:

grails create-domain-class xxxx
grails generate-all xxxx

This will show you what you need to know in the 'list' method and views.

Regards,

Paul.
 
View Paul Bowler's profile on LinkedIn



From: kumudu Samarappuli <[hidden email]>
To: grails codehaus <[hidden email]>
Sent: Tuesday, 27 January, 2009 11:38:24
Subject: [grails-user] Display only few items per page


In my project i need to view only few items per page, since it contains around 300 items.
It's like this.
I have domain class called 'Category' and 'Organization'
One category has many organizations. There one category can have around 200 or 300 organizations. So when go to show.gsp of a category it list down all the organization it owns. But i need to list only 20 organization and then have a link to go to next 20 organization and so on. (like page by page)
how can i do it.

regards
kumudu


New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!



New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!

Loading...