I've done this two ways. The first, on a project before UiBinder (and
before ClientBundle, but back fitted), I put the CSS file in
src/com/corp/app/public and my images in src/com/corp/app/public/images. In
my images client bundles would be entries like
@Source ("com/corp/app/public/images/16x16/ZoomOut.png")
public ImageResource zoomOut();
In the app I'm writing now with UiBuilder, the CSS file is in
src/com/corp/newapp/client and the EntryPoint file NewApp.java contains
interface GlobalResources extends ClientBundle {
@NotStrict
@Source("NewApp.css")
CssResource css();
}
I don't have ClientBundles of images. The images are in
src/com/corp/newapp/client/ui and are referenced as sprites in my *.ui.xml
files.
On Thursday, April 26, 2012 3:48:38 AM UTC-4, tong123123 wrote:
>
> According to the developer guide
>
> https://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizingProjects#DevGuideDirectoriesPackageConventions
> Standard Directory and Package Layout
>>
>> In the war directory, place any static resources (such as the host page,
>> style sheets, or images).
>>
> I follow this structure, but then how to refer the image in Resources file
> in client package?
> @Source("../../../war/Images/xxx.png)
> prompt Resource file xxx.png is missing!!
> and also how to refer the css?
>
> On Thursday, April 26, 2012 11:17:52 AM UTC+8, tong123123 wrote:
>>
>> Currently, I place css file under war directory and images file under
>> war/images directory.
>> but if I want to use ClientBundle, seems these file need place under src
>> directory? if yes, how to modify the build.xml?
>>
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/p53_50M-b28J.
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.