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:
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
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.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: How to put a tool tip in a displaytag column