I think what you need to be using instead of ImageResource is DataResource.
GWT uses a different method for bundling resources for the different browsers - those that support Data URIs (IE8+, Firefox, Chrome et al) get their images turned into base64 encoded strings - IE6/7 gets a sprite image (all the images merged into one). Cheers, Dave On Nov 15, 7:32 am, Frédéric MINATCHY <[email protected]> wrote: > Hi everybody... > > I have a problem with images bundle and IE7... > > In some cases images are not rendered in other cases all images are rendered > on the same button... (I use those images as icons to custom buttons) > > I don't understand everything seems ok on Firefox and Chrome (as usual) > > I use gwt 2.1 and smartgwt > > There is a part of my code : > > public interface UsersAdministrationImagesResources extends ClientBundle { > > public static UsersAdministrationImagesResources INSTANCE = > GWT.create(UsersAdministrationImagesResources.class); > > @Source("user_add.png") > ImageResource addUserImage(); > > @Source("user_delete.png") > ImageResource deleteUserImage(); > > @Source("user_edit.png") > ImageResource editUserImage(); > > @Source("group_add.png") > ImageResource addGroupImage(); > > @Source("group_delete.png") > ImageResource deleteGroupImage(); > > @Source("group_edit.png") > ImageResource editGroupImage(); > > } > > and the way i use it : > > to show a smartgwt button : > > modificationButton = new ImgButton(); > > modificationButton.setSrc(UsersAdministrationImagesResources.INSTANCE > .editUserImage().getURL()); > > and in a real gwt button : > > createButton = new Button(); > createButton.setHTML( "<label>"+i18n.createUser() + "</label> <img > src=\"" + UsersAdministrationImagesResources.INSTANCE > .editUserImage().getURL() + "\">"); > createButton.setWidth("200"); > createButton.setHeight("22"); > > Why is it always so difficult with IE? > > Is there someone to help me pleazzzzzzzzzzzzz???? -- 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.
