Please have a look at GWT DOM class:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/DOM.html
DOM class has various static createElement factory methods that help you
create any DOM element you want.
you can then use Element.setInnerHtml in conjunction with th
One solution is to clone an already existing node and then manipulating it.
1- clone an already existing node
eg. Node node = parent.cloneNode(false)
2- cast this Node to Element
eg. Element element = Element.as(node)
3- manipulate this element
eg. element.setInnerHTML(html.asString) // using th
GWT has Element and Node class which are wrappers for low level DOM
elements/nodes.
do you know How I can convert SafeHtml to Element or Node ?
for example using the code below, I create a SafeHtml.
SafeHtml html =
SafeHtmlUtils.fromSafeConstant("XXXYYY");
but I could not find a way to create