Well, that's not technically true.  You could potentially write a framework
that would get the GWT compiler to generate the bundles for you at runtime.
There isn't such a framework right now & it would take some effort to write
I imagine.

You could base it off the work that was done to recompile the code into JS
on the fly when the Java code changes (I forget by which project - it's in
the mailing list archives somewhere).

Something along the lines of - extract the images to disk, generate the code
for the image bundle, invoke the compiler, delete the original images (if
you really want to save space), & then return a map of image alias & the
parameters of the image (i.e. url of the bundle, offsets into the bundle,
size of the image).

On Sun, Apr 19, 2009 at 5:01 AM, Salvador Diaz <diaz.salva...@gmail.com>wrote:

>
> Also note that ImageBundles cannot be generated dynamically as they're
> created by the GWT Compiler as a single image at compile time.
> For more information about ImageBundles and its intended purposes read
> this:
> http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#DevGuideImageBundles
>
> Cheers,
>
> Salvador
>
> On Apr 19, 1:50 am, Vitali Lovich <vlov...@gmail.com> wrote:
> > new Image("path to remote image file here");
> >
> > On Sat, Apr 18, 2009 at 7:16 PM, POLS <praveen.polishe...@gmail.com>
> wrote:
> >
> > > Hi,
> >
> > > I am using ImageBundle feature.
> > > I am using  @Resource annotation, specifying image file location and
> > > image name.
> > > Its kind of a static behavior.
> >
> > > I have details of images name and locations in the  database.
> > > Can you please tell me, How to load the images?
> >
> > > Thanks,
> > > POLS
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to