This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display tag in JSP.

 
Lucky J Verma
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







 
abani patra
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.
 
poorvika chanda
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic