View HTML source GWT?

Is there a way to view the HTML source code that GWT creates? I am currently just passing the flex table the DIV id and that DIV is all the HTML that I can see in the ViewSource.

Is there a way to structure my table in HTML (e.g. using divs and lists) and not create something like FlexTable?

+4
source share
3 answers

To answer the original question, you can view the HTML version of GWT, which was introduced through the "Inspect Element" in Firefox, with Firebug installed. As an alternative, the web inspector in Safari / Chrome will do the trick as well as the developer tools in both IE8 and Opera.

+5
source

Well, the answer seems to be in the documentation. In particular , Project Management describes how we can bind different widgets to a different identifier on the page. Therefore, I can effectively do something like:

# html <div id="id_table"></div> <div id="id_next_button"></div> # java t = new FlexTable() RootPanel.get("id_table").add(t); nextbtn = new Button("next"); RootPanel.get("id_next_button").add(nextbtn); 

Wohoo!

0
source

Regarding the second part of your quetion. In GWT, you can create an HTML component. The recommended way to do this is: ComplexPanel and create elements using Document.get (). CreateXXXElement () . But this is a little work.

Give up on this dicussion , and I'm sure there are other articles on the Internet about this. You can also learn the code of other components by extending ComplexPanel.

0
source

All Articles