hi!
in the .html file i have references to images such as
<img src="../res/myimage.jpg" width="120" height="90"/>
in the preview this is the correct path.
as soon as i startup the apllication wicket writes out the image as
<img src="../../res/myimage.jpg" width="120" alt="some Image" height="90"/>
1) why is ../ appended at the beginning?
2) how can i replace the path with something like
<link rel="stylesheet" type="text/css"
href="resources/my.package.wicket.start.Start/$up$/res/main.css"/>
the css is included via the Start.java with
add(new StyleSheetReference("mainCss", new CompressedResourceReference(Start.class,"../res/main.css")));
since the pictures are added in the classpath, they must be accessed via
/resources/
it would be optimal if i can acieve this just by editing the html file, to keep
the previewability.
i hate to have duplicate references to the same resource. (java +html that both
contain links to the same images...)
best regards
andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]