View Full Version : tool tips for items on a jsp loaded into a tab

21 Apr 2011, 9:02 AM
I am trying to add tool tips for items on a jsp that was loaded into a tab via autoLoad. I add the <div id='xyz'>...</div> to text on a jsp page and add a tool tip with a target of 'xyz' and the tip does not show up. If I add that div to the page that defines the the tabpanel, the tip shows up. Are there any ideas as to what I am doing wrong?

21 Apr 2011, 9:10 AM
You most likely need to apply the tooltips only after the panel's content has been rendered (i.e. the target IDs are registered/available). Ext.Panel's 'autoLoad' config block supports a callback function which will fire after the content is loaded. This would probably be the optimal place to configure the tooltips.

Ext.Panel.load() also supports the callback handler, in case you want to manually reload the target panel.