Fancybox: showing NOT SHARED dynamic images

39 views
Skip to first unread message

datazuul

unread,
Jul 12, 2011, 3:50:07 AM7/12/11
to visural-wicket
I am using Fancbox for a private album like this:
showing thumbnail images of a group and open Fancybox showing normal
sized image on click on the thumbnail.

Now my problem:
- I get image data from my backend
- image should be served when fancybox-link is clicked
- so I need the url to some serving wicket resource (to be used in the
constructor of Fancybox)
- I need the url NOT public (like a shared resource) but only for
session

That is what drives me crazy!, because all examples end up with a
shared resource I do not want to have because the album should be
private for the session, so just a cryptic temporary wicket-url would
be fine like e.g.: http://localhost:18080/app/?wicket:interface=:0:download::ILinkListener::)

and there is no method like: urlFor(DynamicImageResource)....

can you give me a hint, please?

Richard Nichols

unread,
Jul 13, 2011, 2:48:20 AM7/13/11
to visural-wicket
In these type of situations in the past, I've not used Wicket
resources, and instead fallen back to a regular Java servlet/filter
based approach.

e.g. just code up a servlet filter and map it into your web.xml to
retrieve the images, you can then build in any session based security
you need.

HTH

On Jul 12, 5:50 pm, datazuul <ralf.eichin...@googlemail.com> wrote:
> I am using Fancbox for a private album like this:
> showing thumbnail images of a group and open Fancybox showing normal
> sized image on click on the thumbnail.
>
> Now my problem:
> - I get image data from my backend
> - image should be served when fancybox-link is clicked
> - so I need the url to some serving wicket resource (to be used in the
> constructor of Fancybox)
> - I need the url NOT public (like a shared resource) but only for
> session
>
> That is what drives me crazy!, because all examples end up with a
> shared resource I do not want to have because the album should be
> private for the session, so just a cryptic temporary wicket-url would
> be fine like e.g.:http://localhost:18080/app/?wicket:interface=:0:download::ILinkListen...)
Reply all
Reply to author
Forward
0 new messages