Questions tagged [clientbundle]

An image bundle is a construct used to improve application performance by reducing the number of round trip HTTP requests to the server to fetch images.

An image bundle is a construct used to improve application performance by reducing the number of round trip HTTP requests to the server to fetch images. GWT can package many image files into a single large file to be downloaded from the server and managed as a Java object.

Resources

Good understanding of ClientBundle advantages : https://developers.google.com/web-toolkit/doc/latest/DevGuideUiImageBundles?hl=fr

Official documentation : https://developers.google.com/web-toolkit/doc/latest/DevGuideClientBundle

61 questions
1
vote
2 answers

How to call a method of a GWT ClientBundle interface using a string?

I have a String property that relates to calling a particular method. I have this DTO, with an icon property public class MyDto { String icon; // "first", "second", "third" etc public String getIcon() { return icon; …
slugmandrew
  • 1,776
  • 2
  • 25
  • 45
1
vote
1 answer

use GwtCreateResource to provide text programatically

I would like my uiBinder to use a ClientBundle which will provide some runtime customized labels. Kind of a TextResource but not from a text file ! I tried with GwtCreateResource but from the DevGuide it seems like it's not possible. Am I right ?…
Jordan
  • 594
  • 1
  • 6
  • 14
1
vote
3 answers

How to remove the injected CSS Resource in GWT?

I want to remove the injected CSSResource in GWT application. I used the following code MyClass.INSTANCE.ensureInjected(); I want the above CSSResource for a particular page only. So the remaining pages should be work as per the actual…
Gnik
  • 7,120
  • 20
  • 79
  • 129
1
vote
0 answers

GWT GIN to bind many ClientBundle with ImageResource in one picture for fast loading application

I am using GWT in my application. For caching pictures i use ClientBundle with ImageResource. I have many ClientBundles like this: public interface MenuBundle extends ClientBundle { @Source(background.png) ImageResource background(); …
B.ARS
  • 11
  • 1
1
vote
0 answers

GWT multi-tenancy support using Locale and ClientBundle

I'm trying to bring a multi-tenancy feature to my existing GWT app. Requirements are as follows Use company specific CSS and images Few changes to the texts Some changes to the actual app logic Currently my app has one ClientBundle which includes…
1
vote
1 answer

ClientBundles and Resources: what are they and why use them? What problems do they solve?

I am brand new too GWT, and no matter how much I read the official doc on ClientBundles I just can't seem to wrap my head around what they are, and what they do. The same goes for CssResource, DataResource, TextResource, GWTCreateResource, etc. I…
user1768830
1
vote
2 answers

ClientBundle.enableInlining and ClientBundle.enableRenaming?

I recently read this article on ClientBundle and under the Levers and knobs section, see these two entries: ClientBundle.enableInlining is a deferred-binding property that can be used to disable the use of data: URLs in browsers that would…
user1768830
1
vote
1 answer

GWT ImageResource background-position

I'm attempting to use a single .png as a button with a hover effect (a la this) in GWT using UIBinder but am having a tough time. Here's my ui.xml file:
Jeff Allen
  • 17,277
  • 8
  • 49
  • 70
1
vote
1 answer

Do I really need to put css resource file into a ClientBundle in GWT?

I want to put all my resources into a ClientBundle for easy management. So I first started working on putting a single css file, which is also the file under /war directory, into ClinetBundle. However the style cannot be rendered in my output, but…
sozhen
  • 7,627
  • 14
  • 36
  • 53
1
vote
0 answers

GWT-voices with AppEngine datastore?

I'm developing an app that plays lots of small mp3 files. The mp3's are deployed to App Engine as part of the Java project, & played with GWT-voices via SoundController.createSound() which takes a URL. 2 problems: Is there a limit on the amount of…
1
vote
1 answer

ImageResource in ClientBundle as real element

The IE9 does not print background images per default. Is there an option to tell ClientBundle, that all images should be real elements not fake css-background images?
Friedrich
  • 645
  • 11
  • 26
0
votes
1 answer

ClientBundle in GWT - texture atlas

When ClientBundle created, images from bundle are represent on page as inline data (for ex. img src="data:image/gif;base64,R0lGODlh.... ) in FF, CH. Images are assigned to background so "background-position" attributes works fine. As usually, MS IE…
DraganS
  • 2,621
  • 1
  • 27
  • 40
0
votes
1 answer

How to use Textresource in GWT

I'm using GWT for a Webapplication. Now I tried to include a Textresource (HTML-File) like it's described here: http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#TextResource I got a errormessage like: No source code is…
Tom Mekken
  • 1,019
  • 1
  • 12
  • 27
0
votes
1 answer

GWT Initialize ClientBundle With Multiple CssResources

I'm working on updating some legacy code to GWT 2 and I'm running into some odd behaviour. I have a custom interface that extends ClientBundle as per the gwt docs. Within that bundle I define several CssResources to point to the various .css…
pbuchheit
  • 1,371
  • 1
  • 20
  • 47
0
votes
1 answer

GWT css background image

I use GWT 2.1.1 In package resources i have png images and one css file. In css file i wrote: .finishedTask { background: white url("tick64.png") center center; padding: 0.5em; border: 0; } .unFinishedTask { background-color:…
den bardadym
  • 2,747
  • 3
  • 25
  • 27