You've probably got the path wrong.
Try: 
 String contextPath =
((WebRequest)getRequest()).getHttpServletRequest().getContextPath();
 construct path like this
 String path = contextPath + relative_css_path;
CSSPackageResource.getHeaderContribution(path);


On Thu, 2010-03-25 at 14:08 -0300, Matias Pansa wrote:

> 
> 
> Hi , i'm new to wicket . I been searching in the list archive for css 
> resource problems but i can't found a solution .
> My app is developed under netbeans and there's no way to make de css ( file 
> or html embedded ) to work with wicket .
> I try almost every way that i found on the archive of this list , but nothing 
> work.
> When i preview the html in the browser everything is ok , css ,images etc , 
> but when i deploy to tomcat only css is rendered ok , images are not showed.
> 
> here is what i've used :
> 
> 1 - css embedded in the html file , css is ok but images are no showed , i 
> try almost every path ( background-image : url(" ") ... ) posible to the 
> images , same as the html and java  files , web folder , web-inf , image 
> folder , resources ,etc. I check that resource images are in the war file.
> 
> 2- <wicket:head> tag with headercontributor.forcss(...) , css and images not 
> working at all in every folder of the app.
> 
> 
> I try almost every solution found on the mail list , nothing works to show 
> the images , so now i'm lost , the most basic solution was put all the css 
> code in the html file and nothing.
> 
> here is the tree of the app in netbeans :
> 
> Shirosecurity -
> 
>               -web pages
> 
>                    -meta-inf
>                    -web-inf
> 
>               -configuration files
> 
>               -server resources
>  
>               -sourcepackages
> 
>                    -com.myapp.wicket
> 
>                        --- java and html files
> 
>               -test packages
> 
>               -libraries
> 
> 
> i would apreciate any help on this.
> 
> 
> 
> 
>                  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>                                         
> _________________________________________________________________
> Mirá tus emails ¡cuando te llegan! Hotmail actualiza tu bandeja de entrada 
> automáticamente. Ver más
> http://www.descubrewindowslive.com/hotmail/actualizacion-guardado.asp


Reply via email to