On Nov 22, 7:37 pm, Deepak Singh <deepaksingh...@gmail.com> wrote:
> 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();
>
> 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());
--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-NpRnD2DgMAJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ye7ssUja86QJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
By waiting that this issue is fixed you can use the following workaround :
$("#topbar").css("backgroundImage",
UriValue.url(HomePageClientBundle.INSTANCE.topbar2().getSafeUri().asString())..getCssName());
Julien
> "gwtquery" group.
> To post to this group, send email to gwtq...@googlegroups.com.
> To unsubscribe from this group, send email to
> gwtquery+u...@googlegroups.com.
> For more options, visit this group at