On 10 fév, 14:57, Tsukasa <[email protected]> wrote: > Hi, > > I'm trying to get some modular app desgin working using GWT and MVP. > But now I'm stuck in some ClientBundle issue. > > I wanted to create a ClientBundle for my header widget which contains > the CSS information and image resources. CSS definitions should be > stored in a seperate file called header.css and after working with the > "Developers Guide - UiBinder" I tried the following approach: > > public interface Resource extends ClientBundle { > public interface HeaderCss extends CssResource{ > public String headerBanner(); > public String menuItem (); > public String selected (); > public String hovered(); > public String langswitch(); > public String nav(); > } > > @Source("header.css") > public HeaderCss css(); > > @Source("header_bg.png") > public ImageResource headerBackground(); > > } > > this interface is included into header.ui.xml by: > <ui:style src="resource/header.css" > type="appgui.client.ui.widgets.header.resource.Resource.HeaderCss"/> > > I now want to know how to include ImageResource headerBackground(); in > my header.css
AFAICT, you can only use <ui:image> within <ui:style>, because UiBinder will create a ClientBundle for the ui.xml, and you can (AFAIK) only use an ImageResource that is in the same ClientBundle as your CssResource. -- 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.
