aspose file tools*
The moose likes Other Open Source Projects and the fly likes Showing long list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Showing long list" Watch "Showing long list" New topic
Author

Showing long list

Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

We have a FAQ about pagination here, and a Journal article here.


[My Blog]
All roads lead to JavaRanch
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
So , is there any pagination tag lib? or do I have to implement by my own?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42294
    
  64
DisplayTag


Ping & DNS - my free Android networking tools app
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
DisplayTag! What do you mean bro ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42294
    
  64
I mean, enter "displaytag" in the search field of your browser, hit the enter key, and watch what happens :-)
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
Oh yes.I got it. . Thanks Dittmer.
Yewint Ko
Ranch Hand

Joined: Aug 02, 2009
Posts: 90
hi,
Can I only print in table structure? what if I want to print in other structures?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42294
    
  64
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

Joined: Aug 02, 2009
Posts: 90
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Showing long list