Thank you. This is what I get when I tried the same stuff on the archetype: the visibility of the tooltip flickers between hidden and visible when I'm hovering the label. Each time it flickers, the tooltip "top" position receives some negative hundreds. I've attached the situation and my firebug console so you can picture it better.
As I'm going to use this inside a listview, is there a way to relate (or synchronize) the Ids of my "more info" links and a WebMarkupContainer, for instance? This way I can use JQuery and selectors to change visibility, etc. <a href="" id="more-info_1>more info</a> <a href="" id="more-info_2>more info</a> <a href="" id="more-info_3>more info</a> ... <div id="tooltip_1>blabla</div> <div id="tooltip_2>different tooltip content</div> <div id="tooltip_3>another one</div> ... Again, thanks for your help. On Tue, Jul 12, 2011 at 7:20 PM, nino martinez wael <[email protected]> wrote: > Cant remember what the mootip panel are doing.. > > heres the link for the source though: > > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/jdk-1.5-parent/minis-parent/minis/src/main/java/org/wicketstuff/minis/mootipbehavior/ > > > > 2011/7/12 Rodrigo Heffner <[email protected]>: >> Thanks again, Martin. >> >> I realised earlier that the below only renders the default browser >> title attribute, so no CSS editing for it: >> >> add(new Label("tooltip01", "this is tool tip 01").add(new MootipBehaviour( >> "This is my tool tip", >> "I can be very long and even have formatting like <br /> and be >> <strong>strong</strong>"))); >> >> Then I tried the following code, but I can't find the class MooPanel: >> >> MootipSettings mooSettings = new MootipSettings(); >> mooSettings.setEvalAlways(true); >> MootipBehaviour behaviour = new MootipBehaviour(new MooPanel()); >> behaviour.setMootipSettings(mooSettings); >> >> add(new Label("tooltip02", "this is tool tip 02").add(behaviour)); >> >> My dependency for this is: >> >> <dependency> >> <groupId>org.wicketstuff</groupId> >> <artifactId>minis</artifactId> >> <version>1.4.15</version> >> <type>jar</type> >> </dependency> >> >> Any ideas, anyone? >> >> Sorry for all the questions >> >> On Tue, Jul 12, 2011 at 3:44 PM, Martin Grigorov <[email protected]> >> wrote: >>> On Tue, Jul 12, 2011 at 4:42 PM, rodrigo.bezerra >>> <[email protected]> wrote: >>>> Thank you very much, Martin. >>>> >>>> I'm using something very similar to the example: >>>> >>>> add(new Label("tooltip01", "this is tool tip 01").add(new MootipBehaviour( >>>> "This is my tool tip", >>>> "I can be very long and even have formatting like <br /> and be >>>> <strong>strong</strong>"))); >>>> >>>> Two questions: >>>> - Where can I edit the Tooltip's CSS? As of now, I see a squared box with a >>>> yellow background. >>> I guess MootipBehavior should deliver this CSS as PackageResourceReference >>>> - Can I set some setting so I can select the text inside the tooltip? When >>>> I >>>> move my mouse in the direction of the tooltip, it disappears. >>> I have no experience with Mootip... >>>> >>>> Again, thank you for your help and prompt response. >>>> >>>> -- >>>> View this message in context: >>>> http://apache-wicket.1842946.n4.nabble.com/best-way-to-add-tooltips-in-wicket-tp1882871p3662487.html >>>> Sent from the Users forum mailing list archive at Nabble.com. >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>> >>> >>> >>> -- >>> Martin Grigorov >>> jWeekend >>> Training, Consulting, Development >>> http://jWeekend.com >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> >> >> -- >> Rodrigo H M Bezerra >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Rodrigo H M Bezerra
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
