Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11762

$displayTooltip method seem to be broken

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Awaiting Committer feedback

    Description

      Hello,

      I tried to use in vain to use displayTooltip method:
      http://maven.xwiki.org/site/docs/xwiki-javadoc-4.1.x/com/xpn/xwiki/api/Document.html#displayTooltip%28java.lang.String%29
      (the only doc I found is: http://platform.xwiki.org/xwiki/bin/view/DevGuide/Creating+a+form+with+validation+and+tooltips#HThetooltip)

      I didn't manage to found tooltip field but I can see this method is broken because this code

      $doc.displayPrettyName($prop.Name) $doc.display($prop.getName()) $doc.displayTooltip($prop.getName())
      ....
      ## this is necessary for the tooltips to work
      $xwiki.addTooltipJS()
       

      rendering these pieces of HTML code

      <span class="tooltip_span" onmouseover="this.WIDTH='300'; return escape('FormSMQ.EAClass_FlagEdit_P1_tooltip');">
      <img class="tooltip_image" style="vertical-align:middle" src="/skins/colibri/info.gif">
      ...
      <script type="text/javascript" src="/skins/colibri/ajax/wzToolTip.js">
      Recharger la page pour obtenir le code source pour: https://buttle.di.cete-mediterranee.i2/skins/colibri/ajax/wzToolTip.js
      </script>
      </span>
      

      I use flamingo skin but if I loading the page with ?skin=colibri it is the same problem.

      It seems info.gif and wzToolTip.js doesn't exist anymore (or maybe with another path?)

      Thxs

      Pascal B

      Attachments

        Activity

          People

            surli Simon Urli
            Pbas Pascal BASTIEN
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: