Thanks Eelco..so that means the image cant just be anywhere in the classpath, it has to be either 1) In the same directory as the page-component or 2) In the webapp folder in case of a war and can be accesed via ContextImage...
Secondly can you give me an example of how would i use a dummy class to refer/access an image resources in the same directory.. Thanks in advance Farhan. Eelco Hillenius wrote: > >> Anyways actually i dont have a webapp directory and dont want to have >> that >> in my jar project...just want the .class files and the images (and may be >> css)..both residing it a different folders structure... >> basically below is the resulting jar structure i have and would want to >> keep >> >> my-custom-component >> - [package/classes] : org/xyz/utils (contains the page components and >> other >> classes) >> - [images/css] : images/myimage.jpg, css/style.css > > The only way to do that is to create an images package, put some dummy > class in there, and use that as the reference when you these > resources. > > Eelco > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/packaging-images-css-in-a-jar--tf4772567.html#a13676050 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]