Thanks,
HeaderContributor.forCss("style/abc.css")  this worked with wicket 1.2.2 , i
had 1.2 earlier
but absoulte path didn't work..
marsh


Eelco Hillenius wrote:
> 
>> I have my .css file in web context directory i.e webapp/style/abc.css
>> since
>> this .css is used by plain html and wicket , i can't place it in my
>> wicket
>> webpages directory.
>> I want to access this .css file in my webpage. i know , we can access is
>> using HeaderContributor.forCss(Class scope,String path) but it seems it
>> alway need class for scope. so it expect .css in relative  to scope
>> Class.
>> how do I access .css from my application context i.e.webapp/style/abc.css
> 
> HeaderContributor.forCss("style/abc.css") should do the trick (don't
> put a slash in front though, as that'll make it absolute).
> 
> Eelco
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Programatically-access-to-CSS-tf2463427.html#a6880344
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to