1 Reply Latest reply on Jul 5, 2008 1:09 PM by sergeysmirnov

    ToolTip in richDataTable

    lgweb

      How should I do to make the rich: toolTip in a rich: dataTable?
      see my code I have a column with 5 commandLink so that it only presents the toolTip of the first link all exhibit the same as the first.

      
      <rich:column>
       <center><a4j:commandLink action="#{pedido.editar}"
       id="editar" rendered="#{vendas.situacao=='ABERTO'}"
       immediate="true">
       <f:setPropertyActionListener target="#{pedido.id}"
       value="#{vendas.pedidoid}" />
       <h:graphicImage value="/images/BOTOES/edit.png" width="18"
       height="18" styleClass="imagem">
       </h:graphicImage>
       </a4j:commandLink> <a4j:commandLink action="#{pedido.detalhesVenda}" id="detalhes"
       reRender="tbitemvenda"
       oncomplete="javascript:Richfaces.showModalPanel('itens')"
       rendered="#{vendas.situacao=='FECHADO'or vendas.situacao=='CANCELADO'}">
       <f:setPropertyActionListener target="#{pedido.id}"
       value="#{vendas.pedidoid}" />
      
       <h:graphicImage value="/images/BOTOES/Search.png"
       style="cursor:pointer; border-width:0px;" width="18" height="18"
       styleClass="imagem" />
       </a4j:commandLink> <a4j:commandLink id="excluir"
       onclick="javascript:Richfaces.showModalPanel('frm:confimaExclusao')"
       rendered="#{vendas.situacao=='ABERTO'}">
       <f:setPropertyActionListener target="#{pedido.id}"
       value="#{vendas.pedidoid}" />
       <h:graphicImage value="/images/BOTOES/Trash2.png" width="20"
       height="20" styleClass="imagem">
       </h:graphicImage>
       </a4j:commandLink> <a4j:commandLink id="cancelar"
       rendered="#{vendas.situacao=='FECHADO'and vendas.valortotal >0}"
       oncomplete="javascript:Richfaces.showModalPanel('frm:cancelaPedido')">
       <f:setPropertyActionListener target="#{pedido.id}"
       value="#{vendas.pedidoid}" />
       <h:graphicImage value="/images/BOTOES/Cancelar.png" width="18"
       height="18" styleClass="imagem">
       </h:graphicImage>
      
       </a4j:commandLink> <a4j:commandLink id="reativar"
       rendered="#{vendas.situacao=='CANCELADO'and vendas.valortotal >0}"
       oncomplete="javascript:Richfaces.showModalPanel('frm:reativarPedido')">
       <f:setPropertyActionListener target="#{pedido.id}"
       value="#{vendas.pedidoid}" />
       <h:graphicImage value="/images/BOTOES/buscar.png" width="18"
       height="18" styleClass="imagem">
       </h:graphicImage>
      
       </a4j:commandLink></center>
      
       <div id="editHint"><rich:toolTip for="editar"
       followMouse="true" direction="top-right" showDelay="500"
       styleClass="tooltip">
       <h:outputText value="#{msg.editar}"></h:outputText>
       </rich:toolTip></div>
      
       <div id="editdetail"><rich:toolTip for="detalhes"
       followMouse="true" direction="top-right" showDelay="500"
       styleClass="tooltip">
       <h:outputText value="#{msg.detalhes}"></h:outputText>
       </rich:toolTip></div>
      
       <div id="editdelete"><rich:toolTip for="excluir"
       followMouse="true" direction="top-right" showDelay="500"
       styleClass="tooltip">
       <h:outputText value="#{msg.editar}"></h:outputText>
       </rich:toolTip></div>
       </rich:column>
      
      
      


      Any help and welcome, thank you.