Use #renderHead(IHeaderResponse response) { response.renderCssReference(new PackageResourceReference(WebConsoleApplication.class, "resources/style.css")); }
On Wed, Jul 27, 2011 at 10:20 AM, mlabs <mlabs....@gmail.com> wrote: > I declare a base markup page like so: > > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> > <title>My Wicket App</title> > <link rel="stylesheet" type="text/css" > > href="resources/com.mycompany.webconsole.app.WebConsoleApplication/resources/style.css"/> > </head> > > and I have my style.css file in a folder under the app folder that contains > the WebConsoleApplication class... > > the CSS doesn't seem to get picked up... > > examining the rendered page in firebug I see that the href has been > magically changed to : > <link rel="stylesheet" type="text/css" > > href="../resources/com.mycompany.webconsole.app.WebConsoleApplication/resources/style.css"/> > > the '../' is screwing me up here but I have no idea why it gets rendered > like that.... > > any ideas? > > apologies in advance if this is a dumb question.... > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/resource-problem-tp3697765p3697765.html > Sent from the Users forum 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 > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org