Hello,

i have the same issue. while wicket:link solves css links in header, i still
have problems with ContextImage-s.
In my case, wrong img src (extra level of ../) is generated only after
postback on same page (form submit).
I tried HybridUrlCodingStrategy and QueryStringUrlCodingStrategy with the
same result.

i've been digging sources and i think problem lies somewhere in
ServletWebRequest.getRelativePathPrefixToContextRoot(). in this method,
there's a call to getServletPath() which returns index.html (default if no
welcome file is present in web.xml).
so i suspect the code does not handle this and expects only "" (not welcome
file). Maybe this is why it happens only in tomcat.

MK


francois92 wrote:
> 
> Hi Ashika,
> 
> Give a try to this
> 
> <wicket:link>
>       <link rel="stylesheet" type="text/css" href="style/tablestyle.css"/>
>       <link rel="stylesheet" type="text/css" href="images/style.css"/>
> </wicket:link>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-Deployment-problem-%3A-adding-CSS-links-have-been-modified---tp27399742p27699948.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to