wood burning stoves 2.0*
The moose likes Struts and the fly likes how to change images in paging.banner.full - displaytag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to change images in paging.banner.full - displaytag" Watch "how to change images in paging.banner.full - displaytag" New topic
Author

how to change images in paging.banner.full - displaytag

Guna sekar
Ranch Hand

Joined: May 18, 2010
Posts: 32

Hi,

paging.banner.full=<span class="pagelinks">[<a href="{1}">First</a>/<a href="{2}">Prev</a>] {0} [<a href="{3}">Next</a>/<a href="{4}">Last</a>]</span></

I want to give the images for following: First,Prev,Next.

When i declare images/a.gif, it is not taking that image. Kindly help me in this
Niiraj Patel
Ranch Hand

Joined: Sep 17, 2011
Posts: 47
I would suggest to use ASCII Characters instead of Images.

Try variations such as &#9658 to make an arrow (►).

&#9658 ► rightwards filled triangle
&#9668 ◄ leftwards filled triangle

Please try it. It will look greate. ◄ 1 2 3 4 5 ►

e.g.

<display:setProperty
name="paging.banner.last"
value='<span class="pagelinks">
<a href="{2}"><span class="icon">&#9668;</span> Previous</a> {0} Next <span class="icon">&#9658;</span></span>'
/>
Guna sekar
Ranch Hand

Joined: May 18, 2010
Posts: 32
Thanks for your response..I need some other details if you know about display tag

1) I want to apply border to the page numbers.
2) Also i want to remove the underline from the line numbers.
3) In the column name i need to display without link.
4) Also when i delete some items, it should show the saty in the same page
5) suppose when i do some save function(i.e INSERT) and click on page numbers it is incrementing the same details in the table. That is it is doing the same action again and again.

Niiraj Patel
Ranch Hand

Joined: Sep 17, 2011
Posts: 47
@Guna, point 1 and 2 are out of scope of display tag library. It is html concept how you want to decorate links.
You can make page links like our forum's pagination links.
Here is the tutorial : http://woork.blogspot.com/2008/03/perfect-pagination-style-using-css.html
and you can override default css of display tag library.

1) Apply CSS to your <a> tag.

like :



or


2) SAME AS POINT 1.
3) set the attribute sortable="false" on the columns that you want to be without link.
Here are demo examples of display tag library :http://demo.displaytag.org/displaytag-examples-1.2/example-nocolumns.jsp
4) Did not get you. Please specify your page detail and operation.
5) SAME AS POINT 4..
Guna sekar
Ranch Hand

Joined: May 18, 2010
Posts: 32
Niiraj,

In the column name i need to display without link -- I want the sorting for a column but i dont want that underline for tat name. is it possible?

Suppose if i have the data in the table, and when i delete some items, it should show the stay in the same page

When i move from 1 page number to another, it is doing the last action. In the requestURI, i have given as "/as.do". so it is calling again the last action whatever i did. suppose if i have table with data, i perform delete operation, it is calling again and again, when i move from 1 to2,1to3,2to3,etc
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to change images in paging.banner.full - displaytag