Eelco,
I really appreciate your quick follow-up..thats whats great about this
community..and one of my convincing arguments..
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
Eelco Hillenius wrote:
>
> On Nov 8, 2007 11:16 AM, mfs <[EMAIL PROTECTED]> wrote:
>>
>> Actually it does work when the image is in the same directory as that of
>> the
>> page (same with the example u pointed out)..how would i refer to an image
>> which is altogether is a different structure...
>>
>> lets say my page is at org.xyz.util [page.html] and from within it i want
>> to
>> refer to an image which is in the images directory...
>>
>> using
>>
>> add(new Image("taxCientLogo", new Model("images/company-logo.jpg")));
>> add(new Image("taxCientLogo", new Model("/images/company-logo.jpg")));
>
> For images residing in your web app directory, you would use for
> instance new ContextImage("img", new
> Model("images/company-logo.jpg")); or simply images/company-logo.jpg
>
> 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#a13654087
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]