hi, consider use this annotations:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-merged-resources

here a blog which explains the features it has:
http://techblog.molindo.at/2009/10/wicket-annotation-based-mounting-of-resources.html#more-128

it will help i hope.
bye



On Mon, Nov 23, 2009 at 2:14 PM, Martin Makundi <
[email protected]> wrote:

> Just put /style.css
>
> Otherwise wicket is trying to guess the relative url. In most cases it
> guesses wrong so I have adopted the practice of using resource urls
> relative to the root of the domain.
>
> **
> Martin
>
> 2009/11/23 Ilya German <[email protected]>:
> > Hello!
> >
> > I'm trying to make my web application to use a .css stylesheet. As far as
> I understood reading
> > http://cwiki.apache.org/WICKET/including-css-resources.html
> > and
> > Wicket in Action book
> > I should be able to make any html page to work in the following
> configuration:
> > say, Base.html includes:
> > <head>
> >   <link rel="stylesheet" type="text/css" href="style.css"/>
> > </head>
> >
> > and to put the css file into "web app directory (root of your war file)".
> >
> > So the deployed project structure (say, in tomcat) would be like this:
> >
> > <tomcat webapps>/myapp
> > --------------------------------------/META-INF
> > --------------------------------------/WEB-INF
> > ----------------------------------------------------/classes
> > ----------------------------------------------------------------/pages
> >
> -------------------------------------------------------------------------/Base.html
> >
> -------------------------------------------------------------------------/Base.java
> >
> -------------------------------------------------------------------------/Page1.html
> >
> -------------------------------------------------------------------------/Page1.java
> -> extends Base
> > --------------------------------------/style.css
> >
> > However, when I access my Page1 page in browser (which extends Base page
> both in java and html and seems to be working), I see, that the URL to css
> is rewritten to ../style.css, which tries to reach style.css directly in
> <tomcat webapps> and doesn't find it there.
> >
> > Could anyone explain me what am I doing wrong?
> >
> > Thanks in advance,
> > Ilya
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to