Hi guys,

I just joined this group and I must say that the google team has done
a great job with GWT. I was up and running with the tutorial on the
site and after that I was creating a sample app. I was facing a
problem with using DOM. Every time I used a feature of DOM which
involved passing an Element as an argument, I used to get this error

The method appendChild(Element, Element) in the type DOM is not
applicable for the arguments (Element, Element)

I banged my head for 1 and half days but could not come up with
anything. After that I was checking the modules that were imported and
among them was

import com.google.gwt.dom.client.Element;

After removing the dom.client.Element and replacing it with
com.google.gwt.user.client.Element I didn't get errors. From the API
reference I noticed that dom.client.Element is a part of the
com.google.gwt.core.client.JavaScriptObject tree. I know that when I
am working with UI elements I should be using user.client.Element. But
when should one used gwt.dom.client.Element. From the name it seems
that it should be used with Java Script objects. But can someone give
me an example and show its usage as compared to user.client.Element?

regards,
saurabh



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to