Hi,

This is a question for the real professionals of gwt

I have 3 modules.

Architectural view

a) an Interface defining a .css which uses @sprite on image which
aren't supplied by the module itself
b) an Implementation which supplies the images
c) an Application which works against a). Different implementation
should be easily exchangable


Technical View

a1) interface MyCss1 extends CssResource
    my1.css:
    @sprite lala {gwt-image:"myPic")
a2) interface MyCss2 extends CssResource
    my2.css:
    @sprite lulu {gwt-image:"myPic")

b) interface MyImages extends ClientBundle {
       @Source("MyPic.png")
       ImageResoure myPic();
    }

c) interface MyBundle extends MyImages {
      @Source ("my1.css")
      MyCss1 css1;
      @Source ("my2.css")
      MyCss2 css2;
    }

You can see, that the technical implementation violates the intended
architectural view.

1) In a) some kind of interface should be used to define which images
b) needs to supply. I don't know how to do this

2) "my?.css" lives in a) but GWT expects it in c). At the moment I
just copy it from a) to c). But this is ugly.

Any qualified hints are welcome

Stefan Bachert
http://gwtworld.de

-- 
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