Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Guna sekar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic