I ran across this bug a year ago in Firefox where the String returned
from a Javascript->Applet(Method) call that returns a string isn't a
first class string in GWT. I was testing in Safari OSX and get the
following error message when trying to do a substring on the string
returned from the applet. This was not a problem in FireFox when
testing so I assume the bug was fixed in firefox. To fix it I simply
take the quasi string returned from the Javascript_> applet method
call and do a mystring = "" + stringfromapplet. This creates a string
that I can now do substring on without throwing an execption.

2009-08-04 14:04:46,235 [FATAL] Uncaught Exception:
com.google.gwt.core.client.JavaScriptException:
(TypeError): Result of expression 'c.substr' [undefined] is not a
function.
line: 3650
sourceId: 382878512
sourceURL: 
http://localhost:8084/edu.scripps.hddesktop.Main/3F5E6959D7DF0865CF3BCE94FA15B91A.cache.html
expressionBeginOffset: 447371
expressionCaretOffset: 447379
expressionEndOffset: 447386
--~--~---------~--~----~------------~-------~--~----~
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