0 Replies Latest reply on Sep 11, 2009 12:05 AM by Alesya Nasri

    Tooltip for Calendar Doesn't Work

    Alesya Nasri Newbie

      Hello,
      I'm having a problem of displaying tooltip for calendar. On-mouseover on the date field, the tooltip should be displayed immediately.

      Environment:
      SUN JSF 1.2
      RichFaces 3.3.1.GA
      Jboss 4.3.0.GA

      The tooltip cannot be displayed when using the code below:
      And also, the datepicker is empty when clicked on it.

      <f:view>
      <h:form id="topForm">
      <rich:calendar value="01.01.2003" enableManualInput="true" datePattern="dd.MM.yyyy" inputSize="16">
      <rich:toolTip>This is tooltip showing 01.01.2003</rich:toolTip>
      </rich:calendar>

      Below is a code which is not working as expected:
      The problem is that it will not display tooltip immediately when on-mouseover the date field and take some time to make the tooltip to disappear (on-mouseout). And also, this code is using 'id' (eg: id="tooltip02"), which I don't prefer.

      <rich:calendar value="01.01.2004" enableManualInput="true" datePattern="dd.MM.yyyy" inputSize="16"
      oninputmouseover="#{rich:component('tooltip02')}.show(event);"
      oninputmouseout="#{rich:component('tooltip02')}.hide(event);">
      </rich:calendar>
      <rich:toolTip id="tooltip02" attached="false">This is tooltip showing 01.01.2004</rich:toolTip>

      How do I resolve this problem of displaying tooltip for calendar?

      Related Issues:
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=119238
      https://jira.jboss.org/jira/browse/RF-4986 --> this JIRA has been resolved, but what is the solution?

      Thanks&Regards