if you are using the latest snapshot then i would file this as a bug, this
should work out of the box the way you have it.

-igor


On 5/17/07, Matt Welch <[EMAIL PROTECTED]> wrote:

Putting shared css and javascript resource into the java package hierarchy
would seem to eliminate one of the advantages of using a framework like
Wicket; the clean separation of  responsibilities between HTML page
developers and java developers. Of course, I'm probably already long past
the point of no return in that respect because of the need to put the HTML
templates in the java package hierarchy. Oh well. I'll probably do as you
suggest and put the file in the java package. Thanks for making me aware of
that option.

As far as the version goes, I'm using the maven snapshots available using
the following repository:
                <repository>
                    <id>Wicket</id>
                    <url> http://wicketstuff.org/maven/repository</url>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                    <releases>
                        <enabled>false</enabled>
                    </releases>
                </repository>

and this is the dependency definition:

        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket</artifactId>
            <version>1.3.0-incubating-SNAPSHOT</version>
        </dependency>

Is there a newer/better way? We tried to use the incubating-beta1 version
but had a dependency problem with something related to jdk 1.4.

-Matt


On 5/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> what version are you using? if you are using a recent trunk (1 day old)
> please report this as a bug.
>
> -igor
>
>
> On 5/15/07, Matt Welch < [EMAIL PROTECTED]> wrote:
>
> > I have a stylesheet called base.css that sits in a directory called
> > "styles" that is in my base webapp directory. I have the following
> > stylesheet reference in an HTML template called Login.html:
> >
> >     <link rel="stylesheet" type="text/css" href="styles/base.css"
> > media="screen" />
> >
> > When I go to the login page, the browser URL looks like the following:
> >
> >     http://132.253.103.70:8080/daily/app/pages/Login
> >
> > Note that "daily" is the name of the webapp, and "app" is the name of
> > the wicket application.
> >
> > If I look at the source of the page in my browser, the stylesheet
> > reference has been modified to look like:
> >
> >     <link href="../../../styles/base.css" rel="stylesheet"
> > type="text/css" media="screen"/>
> >
> > It looks like this was resolved with one too many "../". Is this a bug
> > or am I doing something wrong in my configuration? Is there a better way to
> > deal with my stylesheets and other static resources that aren't explicitly
> > part of a component?
> >
> > Thanks!
> > Matt
> >
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to