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

Render image from Datasource in template

I want to render in a template an image that originates from a ClientBundle. But what I get instead is this: I've checked the contents of the datasource and if I copy the image (data:image/png;base64...) in {0} it works. Why it doesn't…
Spiff
  • 3,873
  • 4
  • 25
  • 50
2
votes
0 answers

The Gwt Designer CSS viewer can not find the css file when using CLientBundle

I would like to use the CSS viewer (https://developers.google.com/web-toolkit/tools/gwtdesigner/features/gwt/css_support) integrated in GWT designer in order to manage my css styles.... But I can not add my css stylesheet created in…
user662264
2
votes
1 answer

How can I use the same @def in multiple CssResource css files?

I'd like to say, in a single, centralized location, @def mainColor = #f00; and then, in all of my other css files, refer to mainColor without having to redefine it. Then when I change mainColor in once place, my entire app changes color. The best…
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
2
votes
1 answer

Problem with clientBundle/Eclipse/Maven @source-tag

i tried to use ClientBundle and @source Annotation but without changing eclipse-project-settings, Eclipse can't find any resources because of exlude-filter set for "src/main/resources". The gwt-issue describes the problem in detail and lists some…
dermoritz
  • 12,519
  • 25
  • 97
  • 185
2
votes
1 answer

GWT css include with Client Bundle -> "No source code is available for type de.main.resources.ResourceBundle..."

after running into some problems with the deprecated ways to include css resources into my application I'm eager about using ClientBundle to include the css files. I added the following line to my ###.gwt.xml file:
Benjamin Brandmeier
  • 724
  • 1
  • 9
  • 19
2
votes
2 answers

How to style GWT DataGrid dynamically

I am implementing multiple themes in our GWT applications. The problem is when a DataGrid is constructed, I can't find a way to change the style resource that has been passed to it. Does anybody know how to solve the problem. Or on every theme…
Hamzeh
  • 541
  • 7
  • 15
1
vote
0 answers

Accessing PlayN's client bundles from GWT

I have a PlayN game that I'm compiling to HTML5. I've build a UI in GWT, using normal DOM elements. This UI hosts the canvas on which the game is rendered. Given a string that describes an image location, I'd like to use PlayN's client bundles to…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
1
vote
1 answer

Using images as Background image which are defined in client bundle

I am trying to use an image as a background of a button. I defined the image as a resource in client bundle. public interface MyResources extends ClientBundle { @Source("image/hborder.png") ImageResource hBorder(); } In the css…
Kayser
  • 6,544
  • 19
  • 53
  • 86
1
vote
1 answer

In a GWT UiBinder template with an image resource, where should I locate the actual image file?

According to the docs, you can add an image resource to be used in a uibinder template like this: public interface Resources extends ClientBundle { @Source("Logo.jpg") ImageResource logo(); ... } Using this example as is, however, the image…
Samurai Soul
  • 235
  • 2
  • 9
1
vote
2 answers

ClientBundle don't load the ImageResource

I try to use the ClientBundle implementation to manage my Images to a large File and minimize the HTTP-Requests. I put in my gwt.xml Generate the ClientBundle public interface ResourceBundle extends ClientBundle { public static final ResourceBundle…
Rookee
  • 11
  • 1
1
vote
2 answers

GWT ImageSprite: how to move the background image to the right side

I want to use the following style in GWT client bundle: .myClass tr:hover { background: url("myImage.png") 185px 2px no-repeat; } I declared the image as follows: @Source("resources/myImage.png") @ImageOptions(repeatStyle =…
user588961
  • 116
  • 4
1
vote
3 answers

GWT MenuBar.Resources... ignored?

I'm creating a MenuBar, and I want to have it display a little icon when there are sub-elements to be displayed. I thought I could achieve this like so: interface ActionHeroResources extends ClientBundle, MenuBar.Resources { …
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
1
vote
1 answer

Using ClientBundle image resource in pure HTML element in UIBinder

Based on the following resources: http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html Use ClientBundle image as background-image I have successfully implemented a GWT image resource in a UIBinder template:
PAINKILLER
  • 73
  • 10
1
vote
1 answer

Client bundle and Css resource in GWT

Can anyone deeply explain on how the collaboration of CSS resources,Client Bundle and UI binder works?. I went through the GWT documentation , but not clear on this CSS resources and how the interfaces are generated. Explanation with step by step…
Karthik207
  • 493
  • 9
  • 27
1
vote
1 answer

How to import image from one ClientBundle to use it in style of another ClientBundle

I have like one client bundle : public interface FirstClientBundle extends ClientBundle { public static final FirstClientBundle INSTANCE = GWT.create(FirstClientBundle.class); @Source("panel-top-bg.png") public ImageResource…
Sebastian Piskorski
  • 4,026
  • 3
  • 23
  • 29