Updated to GWT 2.3 - Still no Canvas support in IE9

177 views
Skip to first unread message

dennis.heidelbach

unread,
Jul 8, 2011, 2:04:20 AM7/8/11
to Google Web Toolkit
I just updated my GWT from 2.2 to 2.3 and was looking forward to test
my application also with IE9.

But still the Canvas.createIfSupported-Method returns null, because
the "detector.isSupportedCompileTime()"-Call returns false.

The gwtcanvasdemo is working without any problems in my IE9, so what
could I have forgotten in my application?

I'm using Eclipse 3.6 and changed the Library-Entry in the Java Build
Path from "GWT SDK 2.2" to "GWT SDK 2.3". Do I have to change
something else?

Thanks for any help!
Dennis

dennis.heidelbach

unread,
Jul 11, 2011, 3:36:32 AM7/11/11
to google-we...@googlegroups.com
Has nobody an idea? :-(
 
Right now it's not a big issue, that it only works with Firefox, Opera and Chrome, because I'm doing the base implementation....but the customer of the first real project only accepts the internet explorer, so it would be great to be able to test the application with the IE9.
 
If you need more information about my project (for example XML-Files), just let me know!
 
Thanks
Dennis

Philip Rogers

unread,
Jul 11, 2011, 8:56:26 AM7/11/11
to google-we...@googlegroups.com
Dennis,

GWT's Canvas wrapper should be fully supported in IE9. There's a demo of it in action (with source) here: http://gwtcanvasdemo.appspot.com

One thing to try--do you have <!DOCTYPE HTML> at the top of your html file? Without it, IE9 will switch to various previous rendering or document modes.

Philip

dennis.heidelbach

unread,
Jul 11, 2011, 9:19:16 AM7/11/11
to google-we...@googlegroups.com
Hi Philip,
 
thanks for your reply. The GWT Canvas demo is working with my IE9, so the problem has to be within my application. I used the same method "Canvas.createIfSupported" to check if the Browser can handle the Canvas-Object, but in my application it returns false when using the IE9. :-(
 
The doctype-Tag is set in my HTML-File, I attached it with this post.
 
I also attached my WebVisu.gwt.xml-File, but most of them is commented out.
 
Do you know any other files I can check?
 
Best Regards
Dennis
WebVisu.html
WebVisu.gwt.xml

Magno Machado

unread,
Jul 11, 2011, 9:52:07 AM7/11/11
to google-we...@googlegroups.com
> <!--  set-property name="user.agent" value="safari,ie6,gecko1_8" /> 

Perhaps gwt compiler is somehow seeing an old copy of the WebVisu.gwt.xml file where this line is not commented?

Did you tried to clean the project folder?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/B4-cwE7Ytu0J.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

dennis.heidelbach

unread,
Jul 11, 2011, 10:56:59 AM7/11/11
to google-we...@googlegroups.com
D'Oh, I found it...it's really embarrassing, but I forgot to remove the entry "<meta http-equiv="X-UA-Compatible" content="IE=8" />" from the WebVisu.html file...after deleting it and clearing the browser cache, everything worked fine! :-)
 
However, thank you all for your time!
Reply all
Reply to author
Forward
0 new messages