That shouldn't give any problems. If you take a look at the generated
html of the images example:
This:
<img src =" Image1.gif"/>
references Image1.gif in the webapp directory.
This:
<img wicket:id="image2"
src="/wicket-examples/images/resources/wicket.examples.images.Home/Image2_nl.gif"/>
references a shared (application wide) image with a stable url. Stable
url's are important as they support browser caching.
And finally this:
<img wicket:id="image3"
src="/wicket-examples/images?component=1.image3&version=0&interface=IResourceListener"/>
refers to an image component with name 'image3' nested in the page in the
session that is known by id '1', version '0'.
This last one is nice for dynamically generated images (e.g. reports and
graphs), but you shouldn't use them
for static images as your browser can't cache them (which is because of the
fact that your url will be
constantly changing, and has ? parameters in it).
Eelco
Phil Kulak wrote:
Okay, I've got it. I was trying to make it much more complicated then
it is. Put the image in the package, refere to it from the HTML and it
"just works". Very nice. If I just want to use an image in my public
directory, will I run into problems by relative linking it, without a
component? I noticed that's how the upload example does it.
-Phil
On 6/1/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
Phil
the images and the pub examples in project wicket-examples show you
different means of using images. We tried to keep the examples easy
and focussed on specific topics. Please have a look at the sources. If
afterwards it is still not clear, please let us know.
Juergen
On 6/1/05, Phil Kulak <[EMAIL PROTECTED]> wrote:
I've got an image on the filesytem, how do I display it on the page?
Somehow I have to create a Resource out of it, and that's where I get
lost. Thanks!
-Phil
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?froffad-ysdn-ostg-q22005
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?froffad-ysdn-ostg-q22005
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=fad-ysdn-ostg-q22005
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user