Hi, I have multiple images in panel. I have one LoadableDetachableModel that I use for all the images. I notice that my model is attached/detached X + 1 times, where X is the number of images I have. The excessive attach/detach is my problem.
More info: The images are NonCachingImage. They use a RenderedDynamicImageResource subclass that in turn gets the image data from a IModel. The idea is that RenderedDynamicImageResource.render(Graphics2D) gets the drawing data from the model. The model only needs to be loaded once for all X images. Loading the model is expensive. Since each image sends a GET request, it seems my model is detached after every GET :( I found this bug: https://issues.apache.org/jira/browse/WICKET-175 "Page.onDetach is called by each ComponentResourceRequestTarget" Did I made some bad design choices? Hopefully this is easy to fix. -- View this message in context: http://www.nabble.com/Render-multiple-images-with-only-one-model--tp19660221p19660221.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
