[英]Provide external file path in @Source(“../../war/example.txt”) textresource client bundle gwt
[英]How to use Textresource in GWT
我正在將GWT用於Web應用程序。 現在,我嘗試包括此處所述的Textresource(HTML文件): http : //code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#TextResource
我收到如下錯誤消息:
No source code is available for type my.package.resources.MyHTMLResource; did you forget to inherit a required module?
當我從“ my.package.resources”包中刪除MyHTMLResource.java和資源並將它們放入EntryPointClass所在的“ my.package.client”包中時,一切正常。 但是我想將資源文件與其他文件分開。
那么,如何將資源文件和MyHTMLResource.java文件移動到另一個包中? 我是否需要更改.gwt.xml文件中的某些內容?
提前致謝
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.