7 Replies Latest reply: May 30, 2012 5:51 AM by Jan Papousek RSS

RF 4: rich:tooltip not working on h:inputText?

Karsten Wutzke Expert

Hello,

 

I have the following code:

  <h:panelGroup id="tendering-document-panel">
    <h:inputText value="#{tendering.fileName}"
                 disabled="true"
                 readonly="true"
                 id="tendering-filename-input">
      <rich:tooltip value="#{pqManager.tenderingDocumentFileSize} KB" direction="bottomRight" rendered="#{not empty tendering.fileName}" />
    </h:inputText>
    <h:outputText value=" " />
    <ui:include src="/subviews/preview-link.xhtml">
    ...

 

 

When I put the rich:tooltip outside the inputText but inside the panelGroup the tooltip is shown on hovering the inputText, but it creates ugly artifacts for subsequent components. It's supposed to be displayed only above the inputText.

 

I tried wrapping the h:inputText into a4j:outputPanel (no attributes), but that didn't work either.

 

What's wrong? How do you fix this?

 

Karsten