how did you configure the wicket servlet in web.xml?

Jim McBeath wrote:
I've been playing with Wicket on and off for a while, starting with 1.0
and today upgrading to 1.1-b4.  Today I have been trying to set up a main
CSS page for my app, and so far have not succeeded.

Based on a recent comment about the upcoming capabilities of the
<wicket:link> element by Juergen in the archives of the wicket-users list
<http://sourceforge.net/mailarchive/message.php?msg_id=12740630>
(did this make it into 1.1-b4?),
I have added the following fragment to the <head> of my page file,
AppLogViewer.html, which is down inside a package about three levels:

  <wicket:link>
  <link rel="stylesheet" type="text/css" href="wstyle.css"/>
  </wicket:link>

The referenced file, wstyle.css, is in the same location as
AppLogViewer.html, which is to say in a subdirectory in the jar
file in the WEB-INF/lib directory in the war file.

When I access my web page at the URL

  localhost:8088/AppLogViewer/

my page appears and works fine, but does not access the css page.
A "View Source" in the browser shows this for the <link> element:

  <wicket:link>
  <link href="/AppLogViewer//resources/wicket.Application/wstyle.css" type="text/css" 
rel="stylesheet"/>
  </wicket:link>

If I just point my browser to

  localhost:8088/AppLogViewer/resources/wicket.Application/wstyle.css

it just shows me my app page, same as looking at localhost:8088/AppLogViewer/.

As a wicket beginner, I am still light on some of the concepts and classes
in Wicket, such as the Resource stuff.  Although I have spent a lot of
time digging on the net, I have not been very successful at finding and
navigating documentation for Wicket.  I spent a short amount of time
trying to figure out where the "resources/wicket.Application" appeared
in the source code, but it takes a long time to understand 70K lines of
code without a mentor.

My goal is simply to be able to have one CSS page for my app, which I
can bundle into the war file.  Am I missing something basic here?
Is this supposed to work now?  Is the wicket servlet supposed to be
serving up my wstyle.css file, or do I have to modify my xml file so
that it access the css file without going through the wicket servlet?

--
Jim McBeath


-------------------------------------------------------
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