wood burning stoves 2.0*
The moose likes JSF and the fly likes tooltip for selectItems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "tooltip for selectItems" Watch "tooltip for selectItems" New topic
Author

tooltip for selectItems

A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
I am usng t:selectItems inside a s:selectManyPickList. My itemLabels are too long to be seen inside the selectManyPickList window. Does anyone know to get a tooltip for each selectItem? Appreciate any ideas in this direction.
I have searched other threads on this forum for the same; they seem to be too old to post replies, hence I am opening a new thread.
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
I customized s:selectManyPicklist component to render the title attribute as well. For the moment, I set the title's value to itemLabel's value; I may have to create a new selectItem /selectItems component to take a separate title attribute.
[ February 12, 2008: Message edited by: A. Dusi ]
venkata swamymora
Ranch Hand

Joined: Aug 06, 2007
Posts: 33
Hi

I saw yoour reply.I faced this problem it is possible by using sandbox.you can download sandbox.jar and copied into your lib folder.

you can try like this in your jsp page



this tag used to trim the string and the follwing tag used to dispalay full string as a tooltip



here iam a given a sample how to do .So you just follow this

venkat
A. Dusi
Ranch Hand

Joined: Sep 27, 2004
Posts: 114
Thanks for your suggestions.
But I am curious to know if this will work with t:selectItems(or f:selectItems or f:selectItem).
Is this myfaces-sandbox.jar different from tomahawk-sandbox.jar? I have the latter and that's how I am able to use s:selectManyPickList component in the first place.
Nikhil Kumar C
Greenhorn

Joined: May 19, 2010
Posts: 2
A. Dusi wrote:I customized s:selectManyPicklist component to render the title attribute as well. For the moment, I set the title's value to itemLabel's value; I may have to create a new selectItem /selectItems component to take a separate title attribute.
[ February 12, 2008: Message edited by: A. Dusi ]


Can you please post the customization code to render the title... we need to set the title value to itemLabel... Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tooltip for selectItems
 
Similar Threads
Best tooltip library?
Tooltip text wraps when there is a space in the text
no horizontal scrollbar in SelectOneListBox?
Pop up a message
setting delay time for tooltips with jsf html tags