• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Tooltips and command buttons  RSS feed

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!