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
0
votes
1 answer

Provide external file path in @Source("../../war/example.txt") textresource client bundle gwt

Using string resource concept in my GWT application, I wan't to provide some external path or path of war folder to @Source("some-external-path-not-class-path") Eg.- @Source("example.com/sometextfile.txt") OR…
Akshay Rathore
  • 819
  • 1
  • 9
  • 23
0
votes
1 answer

Benefits of GWT ImageResource preventInlining

I recognized that in GWT, an ImageResource can be annotated with @ImageResource.ImageOptions(preventInlining = true) to prevent it from being added as url('data:image/gif;base64...'). Are there any downsides of inlining images that way? May it be…
Sebastian
  • 5,721
  • 3
  • 43
  • 69
0
votes
2 answers

How to set CSS Resource for DataGrid in UIBinder?

I have two questions. Question #1. this question (post title) comes directly from the last comment from @Cataclysm on the first answer from here: dataGrid = new DataGrid(pageSize, resource), how to set CSS Resource for UIBinder ? I am…
PAINKILLER
  • 73
  • 10
0
votes
2 answers

ClientBundle and Images GWT Exception

I am trying to use ClientBundle in GWT To load messages. Here is my code: gwt.xml
Adrian Olar
  • 2,883
  • 4
  • 35
  • 63
0
votes
2 answers

GWT - ClientBundle for CSS file not working with class names

I have a GWT-question, I am trying to move my css to ClientBundle as CssResource as it claims being the best practice, but there is a problem. It does work with element-ID and element-name but not with class names. So it works when I have div{ …
Madeline
  • 1,039
  • 2
  • 11
  • 19
0
votes
1 answer

How to add the css properties to an image in ImageResourceCell of CellTable

I created a CellTable with image column in GWT. Image is added through `ImageResource . private Column statusColumn; private final Resources resources = GWT.create(Resources.class); final String STATUS_COLUMN =…
olgacosta
  • 1,076
  • 4
  • 15
  • 36
0
votes
1 answer

CssResource defining only a Part of the Classes?

I use GWT ClientBundle with CssResource. I have a css file test.css with the following classes: .c1 { } .c2 { } When I want to use classes from test.css I have to do the following in my application: public interface Resources extends ClientBundle…
Michael
  • 32,527
  • 49
  • 210
  • 370
0
votes
1 answer

Is it an ok practice to have a member ClientBundle in a containing ClientBundle?

In my app, I have MyAppResources, which will mainly contain custom styles for the app. I am thinking about what is a good way to go about applying custom styles to standard widgets, such as a CellTable, along with custom styles on the layout and…
foamroll
  • 752
  • 7
  • 23
0
votes
1 answer

GWT how to set gwt.imageResource.maxBundleSize? (or any System Property's to Integer)

I need to change the system property gwt.imageResource.maxBundleSize to 1000. How would I do this? The property exists as I see it…
darkflame
  • 998
  • 1
  • 9
  • 23
0
votes
1 answer

GWT: I want to create a custom annotation to replace @Source

I have a ClientBundle in which I am referencing a bunch of icons as ImageResource's public interface DefaultCMSResources extends ClientBundle { String baseImgLoc = "com/jorsek/ui/client/style/images/base/"; String baseIconLoc =…
Casey Jordan
  • 1,204
  • 1
  • 20
  • 39
0
votes
1 answer

gwt ClientBundle context.drawImage doesn't show image? my 2D engine

My code has not errors but I don't see the image. The image is located at the same place as the ClientBundle file is. Sorry for a chunk of code. In fact I am newbie in GWT (and in Java as well). And I teach myself. I made debugging and I saw the…
Alex Pilugin
  • 683
  • 2
  • 10
  • 38
0
votes
1 answer

A tool to reverse the process of sprite composition by ImageBundle and split the generated sprite back into image snippets

Is there any tool out there (perhaps the GWT compiler itself can be used as a standalone app) for generating individual images from the *.cache.png files created during compilation? Or, is the mapping information (for sprite geometries) available…
Eliran Malka
  • 15,821
  • 6
  • 77
  • 100
0
votes
1 answer

GWT ImageResource @source path outside project folder

in my project, i am using a ClientBundle for my images used in the project. The images I would be using were already used by other non-gwt project, a Flex web application so these images are placed in a single directory found outside my gwt…
vvns
  • 3,548
  • 3
  • 41
  • 57
0
votes
1 answer

GWT: Module vs ClientBundle?

I'm new to GWT and am having a difficult time understanding the fundamental differences between a Module and a ClientBundle. Both seem to be one in the same thing in some areas of the GWT documentation, whereas in other areas it is clear that they…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
0
votes
1 answer

How can set Element Id for a image which is accessed using ClientBundle in GWT?

In GWT, I need to set element id for a image which will be accessed using ClientBundle. For eg. @Source("logo.png") ImageResource logo(); Instead of Image I'm calling this logo(). But I want to set element Id for logo.png. Is it possible?
Gnik
  • 7,120
  • 20
  • 79
  • 129