• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Display tag in JSP.

 
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic