I faced this exact problem (images in "src/main/resources/images"). This is
what I chose to do (interested in cleaner way though):

1) In MyPage.java:
            URL noProgramImageURL =
getClass().getClassLoader().getResource("images/transparentPixel.png");
            File noProgramImageFile = new File(noProgramImageURL.toURI());
            Image programImage = new Image("programImage", new
FileResource(noProgramImageFile));

2) The FileResource.java class is available at
http://www.nabble.com/forum/ViewPost.jtp?post=17359927



mfs wrote:
> 
> src/main/resources?..lets say if its a maven structure..
> 
> mfs wrote:
>> 
>> Guys,
>> 
>> Wondering as to where would i be packaging my images/css in case of a jar
>> ?
>> 
>> Farhan.
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/packaging-images-css-in-a-jar--tp13652419p17425997.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to