0

popup text not appearing

asked 2009-05-15 21:49:49 +0800

abrar gravatar image abrar
27

updated 2009-05-15 21:51:06 +0800

I have the following snippet of code in my class which extends grid
.....
Div divLabel = new Div();
divLabel.setAlign("right");
divLabel.setParent(inParentRow);
Label label = new Label("User Name");
Popup popup = new Popup();
Html html = new Html();
html.setContent("Enter the user name");
//html.setParent(popup);
popup.appendChild(html);
label.setTooltip(popup);
// label.setTooltiptext("Enter the user name");
label.setParent(divLabel);

.....

When I hover over the label I do not see the help text but if I do

label.setTooltiptext("Enter the user name");

everything is fine.
Am I doing something wrong that it is not appearing in the popup?
Arvinder

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-05-16 05:39:40 +0800

hideokidd gravatar image hideokidd
750 1 2

Hi,

popup must have a parent,
or the page can't generate it.

I've tried adding below code and it works,

popup.setParent(divLabel);

link publish delete flag offensive edit

answered 2009-05-18 19:05:49 +0800

abrar gravatar image abrar
27

Thanks hideokidd, it works!

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-05-15 21:49:49 +0800

Seen: 168 times

Last updated: May 18 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More