• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to put a tool tip in a displaytag column

 
Mattia Merenda
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
I have a table in my application where I get long strings in a column of my table.
I use displaytag to show the table.
Well,I decided to limit the lenght of this column like this:

<display:column property="jobname" title="JOBNAME" maxLength="20"/>

Now I want when a user hovers one of these strings the full long name of the string should be displayed.

I also want to make something like that for the header names of my table.
I am trying to use tooltiptag.jar to develop the tooltip.
Can anyone give an advice?
How must I solve this problem?
Thank in advance,
Mattia
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mattia Merenda:
I use displaytag to show the table.


This is not an HTML question since you are not writing the HTML, you are letting the displaytag library do it for you.

This is a question on the use of the displaytag library so it's been moved to the approriate forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know beans about the displaytag library so I don't know if the tags are set up to allow you to specify a tooltip or not. You'll need to consult the library documentation.

If the library does not have the ability to let you set a tooltip, you could tack one on after the fact with Javascript by adding a title attribute to the appropriate generated HTML tag.

That's a bit fragile though as any change in the way the library generates the HTML could break your code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic