Re: Mapped resource reference and urlFor()

2011-12-14 Thread Bertrand Guay-Paquet
@Peter: This is actually what I was doing already via the ByteArrayResource class! I just didn't notice that only the constructor was called... Thanks for opening my eyes! @Martin: In 1.5.3, I think the code you referenced is : // see if request handler addresses the resource we serve

Re: Mapped resource reference and urlFor()

2011-12-14 Thread Peter Ertl
Try to do the real work in the IResource#respond() (accessing the database and retrieving the image) and make calling the constructor cheap, then you should not have any bottlenecks at all. Am 14.12.2011 um 18:59 schrieb Bertrand Guay-Paquet: > Hi, > > I am using resource references for the fi

Re: Mapped resource reference and urlFor()

2011-12-14 Thread Martin Grigorov
HI, On Wed, Dec 14, 2011 at 7:59 PM, Bertrand Guay-Paquet wrote: > Hi, > > I am using resource references for the first time to implement fetching > images from a DB. The URLs will be of the following form: > "/resources/dbImages/DB_ID.png" where DB_ID is an identifier to retrieve the > image fro

Mapped resource reference and urlFor()

2011-12-14 Thread Bertrand Guay-Paquet
Hi, I am using resource references for the first time to implement fetching images from a DB. The URLs will be of the following form: "/resources/dbImages/DB_ID.png" where DB_ID is an identifier to retrieve the image from the DB. I'm using the article at http://wicketinaction.com/2011/07/wic