Hi Aladdin,
I just debugged the following code snippet:
public void onModuleLoad() {
Element e = DOM.getElementById("mydiv");
String myHTML = e.toString();
Window.alert(e.toString());
Window.alert(myHTML);
}
I was able to add a watch to the expression e.toString(), inspect the
e.toString() assignment in the code snippet and inspect the myHTML variable.
The alerts also both fired and displayed the same text ([object]). The
element "mydiv" is a div that I defined in my host HTML page.
Is there anything I'm missing to reproduce what you saw?
Thanks,
-Sumit Chandel
On Fri, Aug 21, 2009 at 12:37 PM, Aladdin <[email protected]> wrote:
>
> Hi
>
> I notice a bug in GWT / Eclipse if you have a this code
>
> Element e = DOM.get... //Some element
>
> Now try to add a watch to this
>
> "e.getString()"
>
> this is the error that I'm getting (in the Expression window)
>
> Method "getString" with signature "()Ljava/lang/String;" is not
> applicable on this object
>
> I could do something like this
>
> String myHTML=e.getString(); // then I can add a watch !
>
> I can add a watch to "e" but not any sub methods !
>
> is this a bug or I'm making something wrong ?
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---