Hi,
I am using Dojo Tooltip to show multi lines tooltips when the user moves the
mouse over my radio button label.
On the initial load, there were 2 already Dojo errors report on the browser
(IE7 & IE8) page
1. FATAL exception raised: Could not load 'dojo.debug.console'; last tried
'__package__.js'
2. FATAL exception raised: Could not load 'dojo.widget.Tooltip'; last tried
'__package__.js'
and the tooltip was not displayed when I move my mouse over the text. When I
refresh (F5) the page, the error message were gone and the tooltip worked
perfectly i.e. no FATAL exceptions and the tooltip was shown. Anybody know
why the errors occurred on 1st load? Thanks
/lim/
I have included both HTML and source here.
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.Radio;
import org.apache.wicket.markup.html.form.RadioGroup;
import org.apache.wicket.model.Model;
import org.wicketstuff.dojo.markup.html.tooltip.DojoTooltip;
public class TooltipPage extends WebPage
{
public TooltipPage()
{
RadioGroup radioGroup = new RadioGroup("radioGroup");
add(radioGroup);
final Radio channel = new Radio("radio", new Model());
Label channelName = new Label("name", "Click my radio button,
please...");
String tooltip = "Hi I am a tool tip.<br/>And this is my downline.";
DojoTooltip channelTip = new DojoTooltip("tip", channel);
channelTip.add(new Label("label",
tooltip).setEscapeModelStrings(false));
radioGroup.add(channel);
radioGroup.add(channelName);
radioGroup.add(channelTip);
}
}
--
<html>
<body>
[label]
<input type="radio" wicket:id="radio" /><label wicket:id="name">click
me</label>
</body>
</html>
--
View this message in context:
http://www.nabble.com/Dojo-Tooltip-JS-Error-tp22164739p22164739.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]