Page 1 of 1

tooltip and dataGrid

Posted: 16 Jul 2011, 16:46
by omardawod119
Hi everybody !

I have a dataGrid and inside that data grid I have a outputlink with title.
And I have a global tooltip outside the dataGrid.

When navigating in the datagrid, then the tooltip got damaged ? :(

Do I use the tooltip in a wrong way?

Thanks!

Re: tooltip and dataGrid

Posted: 16 Jul 2011, 16:50
by omardawod119
I forgot to tell you that I am using primefaces-3.0.M2 :)

Re: tooltip and dataGrid

Posted: 16 Jul 2011, 19:34
by cagatay.civici

Re: tooltip and dataGrid

Posted: 16 Jul 2011, 23:51
by cagatay.civici
So if you use 3.0.M3-snapshot with non-global tooltips, it should work. Note that global tooltips are not supported in M3.

Re: tooltip and dataGrid

Posted: 17 Jul 2011, 18:30
by omardawod119
Thanks for your reply.

Just wanted to tell that after some tests, that if the tooltip inside a position: relative; div then the position of the tooltip doesn't work properly

This code doesn't work properly (3.0.M3-snapshot):

<div style="position: relative; width: 950px; height: auto;margin: 0 auto;">
<h:outputText id="test" value="Tooltip test" title="This is the title"/>
<p:tooltip for="test"/>
</div>

But if you remove position: relative;, then it will work

Thanks!

Re: tooltip and dataGrid

Posted: 17 Jul 2011, 19:37
by cagatay.civici
It works for me well, tooltip is appended to body on the fly so the location on your page definition should not effect.