p:tooltip 'for' attribute ???

UI Components for JSF
Post Reply
Martin Ahrer
Posts: 13
Joined: 24 Oct 2009, 19:28

24 Oct 2009, 22:33

The showcase for the tooltip component shows a for attribute that pretends that it is supposed to be able to refer to any named component. However, the current code base (1.0.0.RC-SNAPSHOT) does not implement this feature (and it is not documented too).
Any reason why this feature does not exist or has been removed. Should be quite simple to implement. Actually I have implemented that (an algorithm for finding a named component) for a different component and would be willing to contribute it.
JSF 2.0.4, PrimeFaces 2.2.1, Tomcat 6 (as of 2011-03-01)

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

25 Oct 2009, 01:39

Hello Martin,

At first tooltip was designed with the for attribute to define the other component that will receive the tooltip. But with final design a tooltip needs to be nested inside the component. Reason was to speed up things so instead of trying to find out the other component in whole component tree, we can just use getParent() api which will perform better.

I guess the showcase code is old and needs to be corrected.

Thanks for your feedback!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 43 guests