You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Delange <de...@telfort.nl> on 2012/11/06 22:20:13 UTC

Image source location problems, examples did not help

Maybe it's easy but I struggle to long with it. In my webapplication I have
this structure
myapplication
   css
   images
   WEB-INF
     classes etc etc

My Html looks like this
<opdrachten/284/IMG_0013.JPG> 

My Java is:
        StaticImage imageTest = new StaticImage("imagetest",new
Model("/opdrachten/284/P1010841.JPG"));
        form.add(imageTest);

Then on my page the link is
</opdrachten/284/P1010841.JPG> 


I also tried Image but that didn't work either. What's wrong?

And what to do when the location in another directory on the same system?





--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Image source location problems, examples did not help

Posted by Delange <de...@telfort.nl>.
Yes I mistypped it. 
Do you have a suggestion how to solve this problem?




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664p4653666.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Image source location problems, examples did not help

Posted by "Richard W. Adams" <RW...@UP.COM>.
Perhaps I misunderstand the question, but <opdrachten/284/IMG_0013.JPG> is 
not valid HTML. Perhaps you want something like this?

<img src="opdrachten/284/IMG_0013.JPG" />
_____________________________________________________________________

I have yet to meet a C compiler that is more friendly and easier to use 
than eating soup with a knife.




From:   Delange <de...@telfort.nl>
To:     users@wicket.apache.org
Date:   11/06/2012 03:20 PM
Subject:        Image source location problems, examples did not help



Maybe it's easy but I struggle to long with it. In my webapplication I 
have
this structure
myapplication
   css
   images
   WEB-INF
     classes etc etc

My Html looks like this
<opdrachten/284/IMG_0013.JPG> 

My Java is:
        StaticImage imageTest = new StaticImage("imagetest",new
Model("/opdrachten/284/P1010841.JPG"));
        form.add(imageTest);

Then on my page the link is
</opdrachten/284/P1010841.JPG> 


I also tried Image but that didn't work either. What's wrong?

And what to do when the location in another directory on the same system?





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664.html

Sent from the Users forum mailing list archive at Nabble.com.

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




**

This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**

Re: Image source location problems, examples did not help

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Why not use ContextImage?

On Wed, Nov 7, 2012 at 11:37 AM, Delange <de...@telfort.nl> wrote:

> sorry, the directory structure is exactly
>
> myapplication
> >    css
> >    images
> >    opdrachten
> >    WEB-INF
> >      classes etc etc
>
>
> Both directories (images and opdrachten) contain images. The images from
> opdrachten are uploads from the website
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664p4653673.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Regards - Ernesto Reinaldo Barreiro
Antilia Soft
http://antiliasoft.com/ <http://antiliasoft.com/antilia>

Re: Image source location problems, examples did not help

Posted by Delange <de...@telfort.nl>.
sorry, the directory structure is exactly

myapplication 
>    css 
>    images 
>    opdrachten
>    WEB-INF 
>      classes etc etc 


Both directories (images and opdrachten) contain images. The images from
opdrachten are uploads from the website



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664p4653673.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Image source location problems, examples did not help

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

How 'opdracten' is related to 'images' folder (the one that is next to
WEB-INF) ?


On Tue, Nov 6, 2012 at 11:20 PM, Delange <de...@telfort.nl> wrote:

> Maybe it's easy but I struggle to long with it. In my webapplication I have
> this structure
> myapplication
>    css
>    images
>    WEB-INF
>      classes etc etc
>
> My Html looks like this
> <opdrachten/284/IMG_0013.JPG>
>
> My Java is:
>         StaticImage imageTest = new StaticImage("imagetest",new
> Model("/opdrachten/284/P1010841.JPG"));
>         form.add(imageTest);
>
> Then on my page the link is
> </opdrachten/284/P1010841.JPG>
>
>
> I also tried Image but that didn't work either. What's wrong?
>
> And what to do when the location in another directory on the same system?
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Image-source-location-problems-examples-did-not-help-tp4653664.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>