Hi,

I would use mounted resource reference that serves the images.
Check wicketinaction.com. There is a blog article explaining how to do it.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Jun 7, 2016 at 4:57 PM, Davids Patrick <[email protected]> wrote:

> Hi all,
> I have a quite tricky usecase here and I don't know how to handle that.
>
> Our system allows to upload user pictures to profiles.
> So, when the user profile picture is displayed it is read from database
> and delivered by DynamicImageResource.
>
> If the user did not upload any pictures yet an fallback image is delivered
> (generic male and female).
>
> To have them cached/static I thought I can handle this by setting the
> lastModified flag, but in my case I revoke the behavior, because I am in a
> refreshing view which re-creates my components, due to that also a new
> DynamicImageResource is created and my lastModified date information is
> lost.
>
> What could be the best practice to achieve a "conditional caching" for
> (Dynamic)ImageResources?
>
> Kind regards
> Patrick
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to