2012-04-27 66 views
-1

我與GWT和谷歌應用程序引擎的工作...是否有可能在谷歌應用程序引擎

我用com.google.gwt.core使用com.google.gwt.core.ext.Generator。 ext.Generator在客戶端加載動態Presenter類。

它工作時,我在本地測試它。但不是在谷歌應用程序引擎... :-(

PresenterFactory factory = (PresenterFactory) GWT.create(ReflectiveFactory.class); 
IDynamicPresenter p = factory.newInstance("ch...NewsPresenter"); 

本應在類綁定在運行時

我實現下面的代碼: http://programmatica.blogspot.com/2007/10/classfornamefullyqualifiedclassnamenewi.html

是否有可能使用com.google .gwt.core.ext.Generator在GAE?

最親切的問候

山姆

+0

你得到什麼錯誤ClassCasting? – 2012-04-27 19:43:47

+0

我不能想象出錯誤。我只收到一個javascript異常,裏面寫着「傘異常」,我發現「ClassCast」-Exception。 我發現***.cache.html在firefox和IE中有所不同。 IE代碼拋出ClassCast異常,Firefox不支持。 – Sam 2012-05-03 20:58:37

+0

我編譯它沒有運行時類鑄造 - 它的工作原理! – Sam 2012-05-03 21:03:17

回答

0

我編譯它沒有運行時類鑄造 - 它的工作原理!

問題在IE-cache.html文件

-XdisableCastChecking如編譯器標誌