Show text when mouseover in autocomplete

1

I have the following autocomplete:

<p:autoComplete id="meuId"
            label="#{messages['mesage']}:"
            completeMethod="#{metodo}" var="bean"
            itemValue="#{bean.id}" itemLabel="#{bean.descritivo}" dropdown="true"
            converter="xx"
            required="false">

How do I make an informational message appear when hovering over the component?

    
asked by anonymous 06.12.2016 / 14:08

1 answer

1

You can try Primefaces Tooltip :

<p:autoComplete id="meuId"
        label="#{messages['mesage']}:"
        completeMethod="#{metodo}" var="bean"
        itemValue="#{bean.id}"
        itemLabel="#{bean.descritivo}"
        dropdown="true"
        converter="xx"
        required="false" />
<p:tooltip id="tipMeuId" for="meuId" value="Mensagem a exibir" position="top"/>

It's super simple to use and has several customization options

    
06.12.2016 / 17:01