How to build GWT standalone offline application?

亡梦爱人 提交于 2020-01-22 16:31:27

问题


I need to design SPA with GWT technology, but I do not understand clearly how to make (compile) only one page with all JavaScript code in it.

So, for example my task is to make simple page with button and div. You click on button and div appears on page. Simple. When I did this on GWT, I can not find a way to compile this page in simple index.html with all JS code inside (or in one .js file). Page should work in offline mode.


回答1:


GWT do it for you. compile it to one .js file?

Here is simple tutorial http://code.google.com/intl/en/webtoolkit/doc/latest/tutorial/gettingstarted.html

If you have any other question, please ask

and have a look at this.allyou need is here

http://www.vogella.de/articles/GWT/article.html




回答2:


Try Gears with GWT from google here the specs: http://www.slideshare.net/tom.peck/going-offline-with-gears-and-gwt



来源:https://stackoverflow.com/questions/4477992/how-to-build-gwt-standalone-offline-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!