PDA

View Full Version : HtmlData(String selector) does not work for css id's?



hphung
19 Jan 2012, 4:01 PM
Hello,

I'm trying to use an HtmlLayoutContainer and adding widgets to it. For my HTML, I have div's with id's. However, trying to add widgets to these divs using the id's don't seem to work.

Does not work:

myHtmlContainer.add(someWidget, new HtmlData("#someDiv"));

Does work:

myHtmlContainer.add(someWidget, new HtmlData(".someDiv"));

Any help is appreciated!