• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Display tag in JSP.

 
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi
I am using display tag library in my JSP page to display a table.

My question is:
1.How can i contol the text displayed on the bottom of page that has page - Info.

For eg:
Now i can see '4 items found, displaying all items.1' and i want to make it '4 records found.Displaying page 1 out of 10'.
I tried googling but could not find a way to change this banner-text.

2. Another question is i want to create a separate column using display tags in table
this column is not tied to any property in my Pojo. Its an additional column that contains edit link or images links and i want to use decorator
for this link as i have to pass multiple parameters but since it doesnt have any property/attribute corresponing in pojo, how should i tie it to decorator method.
I understand i should use Column Decorator here and extend 'TableDecorator' class.

Thanks







 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would suggest better you create your own display tag and customize it what you want.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
display tag is just open code.find out which class is responsible for the displaying

Now i can see '4 items found, displaying all items.1' and i want to make it '4 records found.Displaying page 1 out of 10'.



modify the class..
 
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!