Re: ImageResource question

2013-08-22 Thread Thomas Broyer
Beware when implementing com.google.gwt.resources interfaces (whose implementations are expected to be generated) that they might change and break your code. GWT 2.6 will introduce a new isStandalone() method for instance. Also, BTW, you should probably use

Re: ImageResource question

2013-08-21 Thread Steve C
I haven't sorted out in my mind the best approach for a few of the details, in particular making it reusable, but this works. Consider it more of a proof of concept. You'd need to create red.png in the war directory, or could try out a data url (which per my tests works with this). For a

Re: ImageResource question

2013-08-17 Thread df
Could you give some code? Thanks W dniu czwartek, 15 sierpnia 2013 01:05:30 UTC+2 użytkownik Steve C napisał: Thanks for asking that question - it led me to a solution to a problem that I've had, which is skinning an app using different versions of resources loaded asynchronously from the

ImageResource question

2013-08-14 Thread df
Hello. Is There any way to create ImageResource dynamically? For example : I get images from WebService in base64 format and I don't have opportunity to have all images on the server at compile time. Can i cast Images to ImageResource? Or is there any other solution? Thanks for help. -- You

Re: ImageResource question

2013-08-14 Thread Jens
Never tried it but new Image(base64 data uri) doesn't work? http://en.wikipedia.org/wiki/Data_URI_scheme Be aware that older IE's have a 32kb limit for such base64 images. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: ImageResource question

2013-08-14 Thread df
It works. I have searched for another solution so i see that there is no other solution. Thanls for answer. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: ImageResource question

2013-08-14 Thread Steve C
Thanks for asking that question - it led me to a solution to a problem that I've had, which is skinning an app using different versions of resources loaded asynchronously from the war directory as opposed to coded into a ClientBundle. I created a client bundle extending SimplePager.Resources,