문제


I'm using GWT for a Webapplication. Now I tried to include a Textresource (HTML-File) like it's described here: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#TextResource
I got a errormessage like:

No source code is available for type my.package.resources.MyHTMLResource; did you forget to inherit a required module?    

When I remove the MyHTMLResource.java and the resources from the package "my.package.resources" and putting them into the package "my.package.client" where the EntryPointClass is, everything works fine. But I'd like to seperate the resourcefiles from the other files.

So how can I move the resourcefiles and the MyHTMLResource.java File in an other package? Do I have to change something in the .gwt.xml file?

Thanks in advance

도움이 되었습니까?

해결책

I put my resources into a subpackage of the client package:

my.package.client.resources

You can also fix it by adding a source entry to your gwt.xml.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top