ClientBundle not able to set background image
Hi,
GWT 2.4
html contains one div as written below
<div id="topbar" style="background-image:url(images/top-bar-2.png);background-repeat: repeat-y;"></div>
Now i need to replace this image through clientbundle. So MyClientBundle as follows
@source("images/top-bar-2.png")
ImageSource topbar2();
--
Deepak Singh
-- i change my html like this
<div id="topbar" style="background-repeat: repeat-y;"></div>
and in java code i set
Document.get().getElementById("topbar").getStyle().setBackgroundImage(clientbundle.topbar2());
But it does not display image.
Somone pls identify my mistake.
Thanks
Deepak
Deepak Singh
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home