Can't add Tooltip as renderer decorator to renderer component
Description
If the prototree for a renderer component includes a Tooltip as a renderer decorator, the creation of the Tooltip component fails with the message "fluid.container was supplied a non-jQueryable element"
This seems to be happening because the Tooltip has no 'gradeNames' or 'argumentMap' so the framework assumes it's a 'littleComponent' and misinterprets the first (container) argument as the options argument. I'm not sure whether this is a bug in the Tooltip (for not providing gradeName or argumentMap) or the framework (for making the wrong assumption).
Environment
None
Attachments
2
Activity
Show:
Antranig Basman June 11, 2013 at 5:15 PM
A modern framework-compliant tooltip reached trunk last month as 187df86 so hopefully this issue has now been resolved.
Antranig Basman February 19, 2013 at 10:08 AM
This is definitely a bug in the component. All components will be required to supply a valid set of gradeNames in the upcoming framework revision - going further, all components will also be expected to participate in the "autoInit" system. All non-compliant components will be upgraded before this revision, currently floated as being "Infusion 1.9".
Anastasia Cheetham January 3, 2012 at 7:56 PM
Sorry, the first attachment didn't have the actual JIRA number in the tests, just a placeholder. This file (*-fixed.txt) has the correction.
Anastasia Cheetham January 3, 2012 at 7:52 PM
The attached file (FLUID-4571-tooltip-decorator-test.patch.txt) provides a test case that shows the failure.
If the prototree for a renderer component includes a Tooltip as a renderer decorator, the creation of the Tooltip component fails with the message "fluid.container was supplied a non-jQueryable element"
This seems to be happening because the Tooltip has no 'gradeNames' or 'argumentMap' so the framework assumes it's a 'littleComponent' and misinterprets the first (container) argument as the options argument. I'm not sure whether this is a bug in the Tooltip (for not providing gradeName or argumentMap) or the framework (for making the wrong assumption).