No worries - much better to have raised the issues & got them sorted
than have had to give up on Wicket!

/Gwyn

On 02/09/05, Jim McBeath <[EMAIL PROTECTED]> wrote:
> OK, got it working, thank you all very much for your patience.
> 
> It appears the problem really was just using "/" rather than "/*" in the
> web.xml file.  When using just "/" I had tried directly entering the URL
> to the CSS file and didn't get it; after I changed my web.xml file to
> use "/*", and it still was not working, I failed to try the URL again.
> When I finally did, I saw that it was now returning the CSS page, and
> realized my trivial one-line CSS page had a bug causing it not to render
> (it contained <style> tags around the content).
> 
> So, two small errors, one non-obvious (the "/*" one) and one just
> stupid (bad CSS file) added up to make it take me many hours to solve.
> My apologies for causing you to spend more time on this than you should
> have had to, and thank you for your dedication to Wicket!
> 
> --
> Jim
> 
> On Thu, Sep 01, 2005 at 11:59:00PM +0100, Gwyn Evans wrote:
> > From: Gwyn Evans <[EMAIL PROTECTED]>
> > To: [email protected]
> > Subject: Re: [Wicket-user] main CSS file
> > Date: Thu, 1 Sep 2005 23:59:00 +0100
> >
> > These worked, using the QuickStart jetty launcher.  Using Wicket HEAD,
> > though, as it's what I've got to hand...
> >
> > -- CssDemo.java ---
> > package wicket.quickstart;
> >
> > import wicket.PageParameters;
> > import wicket.markup.html.WebPage;
> >
> > public class CssDemo extends WebPage {
> >     public CssDemo(final PageParameters parameters) {
> >         super();
> >     }
> > }
> > -------------------
> > -- CssDemo.html ---
> > <html xmlns:wicket="http://wicket.sourceforge.net/";>
> > <head>
> >       <title>Wicket Test - CSS Demo</title>
> >       <wicket:link>
> >               <link rel="stylesheet" type="text/css" href="CssDemo.css"/>
> >       </wicket:link>
> > </head>
> > <body>
> > <h1>Css Demo</h1>
> >
> > <p>This is a demo page for Wicket.</p>
> > </body>
> > </html>
> > -------------------
> > -- CssDemo.css ----
> > H1  { color: blue }
> > -------------------
> > -- web.xml --------
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE web-app
> >       PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> >       "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > <web-app>
> >     <display-name>Wicket QuickStart</display-name>
> >     <servlet>
> >         <servlet-name>quickstart</servlet-name>
> >         <servlet-class>wicket.protocol.http.WicketServlet</servlet-class>
> >         <init-param>
> >           <param-name>applicationClassName</param-name>
> >           <param-value>wicket.quickstart.QuickStart</param-value>
> >         </init-param>
> >         <load-on-startup>1</load-on-startup>
> >     </servlet>
> >     <servlet-mapping>
> >         <servlet-name>quickstart</servlet-name>
> >         <url-pattern>/*</url-pattern>
> >     </servlet-mapping>
> > </web-app>
> > -------------------
> >
> > /Gwyn
> >
> >
> > On 01/09/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > That code is fine, as it shouldn't render a page, but just stream the 
> > > resoure.
> > >
> > > Did you put '/*' in your web.xml (not just '*') ?
> > >
> > > Eelco
> > >
> > >
> > > On 9/1/05, Jim McBeath <[EMAIL PROTECTED]> wrote:
> > > > I tried adding the "*" to my web.xml file, that didn't make any
> > > > difference.  I ran a debugger on the wicket code and came across
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to