Hi,

I have made an online documentation in html with images which are
referred to by the html with the <img/> tag.
I am trying to use the client bundle for the html. My application
finds the html but it is looking for the images here /lea/
com.saic.lea.rpc.LeaRPC/images/menu-build.png (/lea is the application
context and com.saic.lea.rpc.LeaRPC is the concatenation of the
package name and the name of the gwt descriptor.
I tried to put the html under /com/saic/lea/rpc/client/resources/html/
user and the images under /com/saic/lea/rpc/client/resources/html/user/
images.

So my question is : is there a way to create resources in the
ClientBundle and say : hey, these resources refer to other resources
by relative path, so please package the whole thing so that resolution
can happen.

The same could happen with xml documents using <xi:include/> or xsl
using <xsl:import/>.

Here is how I have declared my resources :

public interface HtmlResources extends ClientBundle {
          public static final HtmlResources INSTANCE =
GWT.create(HtmlResources.class);
          @Source("user/lea-user.html")
          @DoNotEmbed
          public DataResource userManual();
          @Source("admin/lea-admin.html")
          @DoNotEmbed
          public DataResource adminManual();
}

Packaging the complete documentation under www/manual and accessing it
by URL without resources works. But it leaves a taste of "unfinished"

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to