Hi
I am still new to all this stuff, and have run into a problem:
I can create a full list in a string, put it in an HTML widget, and
add it to the panel, and that displays OK.
However I need to have each list item being clickable, so I need to
put a list of HTML elements inside the Panel, all embedded in an <ul>
</ul> element, and this is my problem:
I crerated a new derived class from HTML like this:
public class FamHTML extends HTML {
public FamHTML(String html, ClickHandler handler){
super(Document.get().createSpanElement());
setHTML(html);
addClickHandler(handler);
}
}
If I then try something like:
nameListPanel.setElement(Document.get().createULElement());
for (int i = 0; i < names.size(); i++) {
nameListPanel.add(new FamHTML("<li>" +
URL.decodeComponent(((JSONString) names.get(i)).stringValue()) + "</
li>",handler));
}
Then I get the error, that setElement is not visible to nameListPanel,
which is an AbsolutePanel.
So basicaly, how can I get everything inside an AbsolutePanel embedded
inside an <ul> </ul> block?
Per
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.