• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Showing long list

 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am creating a small app. I have about 100 Books in my List .I don't want to show all on one page.I just want to loop through it showing 10 book per page.
and for the rest , I want to show links to each page.
For example , like the following



I have no idea how to do it. does any framework support such kind of task? If somebody have the example code , I want to have a look. Please help me.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a FAQ about pagination here, and a Journal article here.
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So , is there any pagination tag lib? or do I have to implement by my own?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DisplayTag
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DisplayTag! What do you mean bro ?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean, enter "displaytag" in the search field of your browser, hit the enter key, and watch what happens :-)
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yes.I got it. . Thanks Dittmer.
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Can I only print in table structure? what if I want to print in other structures?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Like what? Using CSS, you can make the table look like a list, for example. I don't think it's possible to get rid of the underlying table structure, though.
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean ,for example , Please look at this site.. [ UD: Link to file sharing site removed. Don't ever link to such a site again. You also MUST mention if the design of a site is not safe to open at a workplace. ]
It prints one object by one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic