Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

display tag for pagination

Thread view: 
gk - 23 Jan 2006 13:11 GMT
Here is the tag library for the pagination.....but where is the  page
numbers like 1,2,3,...etc ??
How do i create page numbers 1,2,3..etc with this tag library ?

LINK :

http://displaytag.sourceforge.net/10/tagreference-displaytag-12.html

this link says,

Example:
=======

<display:table name="someList" export="true" id="row"
requestURI="MyAction.do">
 <display:column sortable="true" title="ID"> <c:out
value="${row.id}"/> </display:column>
 <display:column property="email" autolink="true"/>
 <display:column property="description" title="Comments"/>
</display:table>

i dont see, how the page numbers are created  here ......how do i get
the page numbers then ?

i would like the pagination like     [First/Prev]1,2,3[Next/Last]

look here  http://displaytag.sourceforge.net/11/

in the second  example, they have this type of paging.......but nowhere
they  have mentioed how they are creating this type of paging.

can you help please to understand and make this thing ?

ragards
Joe Attardi - 23 Jan 2006 14:39 GMT
> How do i create page numbers 1,2,3..etc with this tag library ?

In your <display:table> tag, you need to set the 'pagesize' attribute.
When a pagesize is set, the displaytag library will break the list of
objects into various pages. The page links will be added at the bottom.

Example:

<display:table name="someList" export="true" id="row"
requestURI="MyAction.do" pagesize="10">
...
</display>

Hope this helps!

Signature

Joe Attardi

gk - 24 Jan 2006 04:35 GMT
hi,

i appreciate your help.
thank you very much.

it was a big help to me.

will you please tell how this type of pagination is done ? like below

[First/Prev]1,2,3[Next/Last]


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.