How to add static content to a GWT project in eclipse

怎甘沉沦 提交于 2019-12-24 17:18:54

问题


any quick hint to an article for adding static content to a GWT project (ex:images)

Regards


回答1:


You have basically two ways of doing this:

  1. ImageResource Article 1 Article 2

  2. You can just drag and drop your image into the war-folder of your project. If you want to display that image you would just create an HTML object and use the setContent()-function to display it(using the img-tag you know from HTML)

I would use number 1 because it uses css sprites to optimize the loading time of your application.



来源:https://stackoverflow.com/questions/3761019/how-to-add-static-content-to-a-gwt-project-in-eclipse

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