Wednesday, December 21, 2016

Re: Force Client Bundle to refresh without any modification on the file

Is there a solution to tell GWT that my ClientBundle needs to be refreshed at every compilation?

No. Also your solution defeats any code pruning because of the generated switch statements that references all the component templates that might or might not be used by a given application.

You should provide a predefined ClientBundle that has one method per component that returns the matching TemplateResource. Your library users would then create their own ClientBundle for their own templates or use the default ones. Basically it's very much like defining lots of ImageResource methods on a ClientBundle to provide images in an optimizable way.

Also if you want your library to work in a post GWT 2.8 world, then you might want to consider an APT based solution as GWT 3.0 will likely not support GWT generators anymore. 

-- J.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment