The following works for me using wicket 1.3.x. in web.xml: <filter> <filter-name>tabs</filter-name> <filter-class> org.apache.wicket.protocol.http.WicketFilter </filter-class> <init-param> <param-name>applicationClassName</param-name> <param-value> org.apache.wicket.security.examples.tabs.MyApplication </param-value> </init-param> </filter> <filter-mapping> <filter-name>tabs</filter-name> <url-pattern>/tabs/*</url-pattern> </filter-mapping>
the root of the webapp contains an img, css and js directory in the html i have: <link rel="stylesheet" href="css/style.css" type="text/css" media="all" /> <script type="text/javascript" src="js/examples.js"></script> which wicket indeed translates to <script src="../js/examples.js" type="text/javascript"></script> but it works just fine. I don't use the Image component in my app but if i hardcode an image in my html as <img src='../img/beer/logo_gifkikker.jpg' /> it works too. Maurice On Fri, Jun 13, 2008 at 1:55 PM, danielepiras <[EMAIL PROTECTED]> wrote: > > My webapplication is mapped under /myApplication context. > If I inserted in the html a normal image with the source "img/myimg.gif" > (for example "img/myimg.gif ) wicket change the source in > "../img/myimg.gif" and so the image doesn't appair. > I have the same problem for all elements: images, css and so on... > > I found a little workaround using: > mountBookmarkablePage("/home", getHomePage()); > but I do that for all pages... > > I think the problem is that wicket doesn't understood the correct > application name and, when try to resolve path add "..". > There is a way to solve this problem? > There is a way to "FORCE" the application name or overriding this resolution > system? > > Thank you very much > Daniele > -- > View this message in context: > http://www.nabble.com/Problem-on-resolving-images-path-tp17821781p17821781.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]