I had already tried that and got an error message which I cannot remember. Thanks for the idea, though.
I have now solved my problem by using a class that descends from ByteArrayResource and which overrides getData(IResource.Attributes). I supply an instance of this class to my NonCachingImage instead of a model. On Oct 14, 5:01 pm, gk <goran.kar...@googlemail.com> wrote: > Open the source URL of the image in your browser (http://.../page?8- > IResourceListener-frmForm- > imgImage&antiCache=1318502670796). Then see what your browser > tells you about that resource. > > On Oct 13, 4:13 pm, Ian Marshall <ianmarshall...@gmail.com> wrote: > > > Hello everyone, > > > I use Apache Wicket's NonCachingImage component to show an image in a > > form. The image shows correctly when using the GAE/J development > > application server but fails to show when the code is running on GAE > > proper. > > > I believe that this may be due to the image's "src" tag not being > > interpreted by GAE's cloud, whereas it is rendered properly by the dev > > app server. > > > Has anyone had this happening to them? Can anyone think of a solution > > or suggestion? > > > Regards, > > > Ian > > > HTML > > ---- > > <img wicket:id="imgImage" alt="[None]" width="100%" height="100%"/> > > > Java code > > --------- > > // ImageModel extends LoadableDetachableModel<ItemImageResource> > > // ItemImageResource extends DynamicImageResource > > ImageModel imodImage = new ImageModel(pidmModel); > > NonCachingImage imgImage = new NonCachingImage("imgImage", imodImage); > > frmForm.add(imgImage); > > > Sample HTML output > > ------------------ > > <!-- > > This output shows an image with the dev app server, > > but "[None]" when served by a GAE/J production server. > > --> > > <img wicket:id="imgImage" alt="[None]" width="100%" height="100%" > > src="page?8-IResourceListener-frmForm- > > imgImage&antiCache=1318502670796"/> -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.