Still be lost :-( 

This code I have in AppStart class:
mountSharedResource("/images/image1.jpg", new
ResourceReference(Images.class, "image1.jpg").getSharedResourceKey());

Now after reading recomended example still not idea how to replace new
ResourceReference(... in above code snippet
in a way in which I get from byte[] shared resource key.

Please be kindfull, I'm in low level in java and greenhorn in wicket :-D

Miro



> -----Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
> Sent: Tuesday, 12. July 2011 17:09
> To: users@wicket.apache.org
> Subject: Re: url for images from database
> 
> https://cwiki.apache.org/WICKET/uploaddownload.html
> 
> -igor
> 
> On Tue, Jul 12, 2011 at 2:54 AM, Miroslav F. <mir...@seznam.cz> wrote:
> > Is there example? How to get shared resource key from byte[] (image 
> > from DB)? In my App class i do for several shared resources:
> > mountSharedResource("/styles/style.css", new 
> > ResourceReference(Styles.class, 
> "style.css").getSharedResourceKey());
> >
> > Is is possible in this code getsharedResource() for byte[] 
> (image from 
> > DB) in some way?
> >
> >
> >> -----Original Message-----
> >> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> >> Sent: Sunday, 10. July 2011 18:16
> >> To: users@wicket.apache.org
> >> Subject: Re: url for images from database
> >>
> >> use a shared resource to output the images instead of an Image 
> >> component
> >>
> >> -igor
> >>
> >> On Sun, Jul 10, 2011 at 6:44 AM, Miroslav F. 
> <mir...@seznam.cz> wrote:
> >> > Hi folks,
> >> >
> >> > please direct me to right docu with following problem: I
> >> have image as
> >> > byte[] from database which I display on pages.
> >> >
> >> > Works fine, on image atribute src is somethink like this:
> >> > <img
> >> > 
> src="?wicket:interface=:0:repeater:1:obrazok::IResourceListener::"/
> >> > >
> >> >
> >> > For lightbox I need make this "ugly" src atribute transform to 
> >> > something like src="/images/xxx.jpg" and mount it
> >> on-the-fly but don't
> >> > know how to do it.
> >> >
> >> > Is somewhere related example please?
> >> >
> >> > Thanks in advance,
> >> >
> >> > Miro
> >> >
> >> >
> >> >
> >> 
> ---------------------------------------------------------------------
> >> > 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
> >>
> >>
> >
> >
> > 
> ---------------------------------------------------------------------
> > 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
> 
> 


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

Reply via email to