aspose file tools*
The moose likes JSF and the fly likes Tooltips and command buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Tooltips and command buttons" Watch "Tooltips and command buttons" New topic
Author

Tooltips and command buttons

Ian Dunsirn
Ranch Hand

Joined: May 25, 2006
Posts: 36
I am having a problem with tooltips and command buttons. The code is:
h:commandButton value="Customize Sort Order" action="#{issueListener.customSort}" onklick=""
rich:toolTip
span style="white-space:nowrap"
Allows you to sort this list by several criteria.
span
rich:toolTip
h:commandButton

The problem is that in Firefox, I can't see the tooltips. I can see them in IE 7.0. The other odd thing is that the tooltip shows up for this code:

h:inputText id="newProjectCode" value="#{addprjsys.projectCode}" required="true" requiredMessage="Please enter the Project Code."
rich:toolTip
span style="white-space:nowrap"
The code for this project.
span
rich:toolTip
h:inputText

What gives? Why can't I see the command button tooltip in Firefox?
Ganesha Kumar
Ranch Hand

Joined: May 04, 2006
Posts: 56
Have you given a value to the attribute title with h:commandButton. I used the tag h:commandButton with title attribute. The value of title is displayed as toolTip in Firefox.
Ian Dunsirn
Ranch Hand

Joined: May 25, 2006
Posts: 36
I can indeed do that, but if someone looks at my application in IE7, they will see both that title tooltip as well as the richfaces one. I wanted all the tooltips to have the same look, which is why I used the richfaces tooltip in the inputText box and want to use them with the command button.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tooltips and command buttons