display tag for pagination

G

gk

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:eek:ut
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
 
J

Joe Attardi

gk said:
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!
 
G

gk

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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,353
Latest member
RogerDoger

Latest Threads

Top