Just write a servlet (or Spring Web MVC "handler").

On Mon, Nov 2, 2009 at 10:52 AM, Peter Dotchev <dotc...@gmail.com> wrote:
>
> Hi Alex,
>
> I check SharedResources, but as I understand it I would have to add there a
> Resource object for each image.
>
> After checking again the javadoc there might be another way.
> Display each image with Image constructor that takes ValueMap and provide
> there some image identification.
> Add a single Resource object for all images and from getResourceStream()
> implementation to call getParameters() which will return the same parameters
> passed to Image constructor and tell me which image to return.
> Will this work?
>
> Best regards,
> Petar
>
>
> Alexandru Objelean wrote:
>>
>> Besides the servlet, there is also a wicket way of do it:
>>
>> - Use shared resource, which is stateless and bookmarkable
>>
>> If you need more informations about this approach, search on forum or just
>> ask... and I'll provide you with some examples of how I do it..
>>
>> Alex Objelean
>>
>>
>> Peter Dotchev wrote:
>>>
>>> Hi,
>>>
>>> My app allows users to upload images and I store them in JCR
>>> <http://en.wikipedia.org/wiki/Content_repository_API_for_Java>. I can
>>> get InputStream for each one of them.
>>> I want to display images in specific pages and I want image URLs to be
>>> stable/bookmarkable. Also I don't want these pages to use the session in
>>> any way.
>>> I checked again chapter 9 about images from Wicket In Action but such
>>> use case is not addressed there.
>>>
>>> I found that SharedResources allows for stable URLs, but I cannot
>>> register each individual image.
>>>
>>> What approach would you suggest?
>>>
>>> Best regards,
>>> Peter
>>>
>>>
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Bookmarkable-images-from-db-tp26154577p26157711.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to