I used WicketStuff Dojo Tooltip in my one page and it works fine. Right
now the tooltip displays on mouseover event. Is there anyway I can
display it on onClick event?
On my other page I have a link which I am hiding/showing through ajax
update (target.addComponent(..)) based on some condition. In this case
the tooltip is not being displayed.
Do I need to do anything else for that? Please see code below.
---------------------------------
JAVA Code
final Label myLinkComponent= new Label("link",
objectiveDescLabelModel) {
public boolean isVisible() {
return "true or false based on
condition";
}
};
final MyPanel myPanel = new MyPanel ("panel-id",
objectiveDescLabelModel, new LoadableDetachableModel() {
private static final long serialVersionUID = 1L;
protected final Object load() {
return "Dynamic Tooltip";
}
});
DojoTooltip tooltip = new DojoTooltip("tooltip",
myLinkComponent);
tooltip.add(myPanel);
...
add(myLinkComponent);
add(tooltip);
-----------------------------
HTML Code
<a wicket:id="link" href="javascript:void(0);"></a>
<span wicket:id="tooltip"><span
wicket:id="panel-id"></span></span>
Thanks,
Sanjay Patel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]