On Mar 10, 5:52 pm, Michael <[email protected]> wrote: > Hi there, > > I'm having a go at using the declarative layout and was wondering if > there's a way of using an image declared in a ClientBundle as a > background-image in the ui:style section, thus: > > <ui:UiBinder > xmlns:ui="urn:ui:com.google.gwt.uibinder" > xmlns:g="urn:import:com.google.gwt.user.client.ui"> > <ui:with field="res" type="com.mycompany.MyClientBundle"/> > > <ui:style> > .banner { > background-image:url('res.menuBackground'); > } > </ui:style> > </ui:UiBinder> > > If not, how are you supposed to do that?
Have you tried @url with a DataResource? http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#References_to_Data_Resources I know it works if your DataResoruce is created with a <ui:data>, I don't know when it comes from a separate ClientBundle imported with <ui:with>... -- 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.
