try changing this:

<link rel="stylesheet" type="text/css" media="screen" href="css/box.css" />

to

<link rel="stylesheet" type="text/css" media="screen" href="../css/box.css"
/>

notice the ../ in href. that should fix that.

also note that this isnt the greatest way to include css because it will
break if you use a mounted page.

-igor


On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote:


Sorry,

It is the 1.2.6 url and the url is:


http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage

When the page is displayed there is no CSS formatting for the page. In the
log there is a warning message:

the resource requested by request [method = GET, protocol = HTTP/1.1,
requestURL = http://localhost:8081/dmWicket/app/css/box.css, contentType =
null, contentLength = -1, contextPath = /dmWicket, pathInfo =
/css/box.css,
requestURI = /dmWicket/app/css/box.css, servletPath = /app, pathTranslated
=
D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found

The translated path is the correct one for the CSS file.



igor.vaynberg wrote:
>
> is that the 1.2.6 or the 1.2.5 url?
>
> -igor
>
>
> On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote:
>>
>>
>> Yes, it seems that this is the problem:
>>
>>
>>
http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage
>>
>> But I do not know how to correct it since my servlet mapping is:
>>
>> <url-pattern>/app/*</url-pattern>
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > maybe it is because wicket now always adds a / to the end of the
>> servlet
>> > mapping. this was inconsistent in the past, sometimes urls were
>> > /context/mapping?wicket:id... and sometimes they were
>> > /context/mapping/?wicket:id=...
>> >
>> > the problem was that /context/mapping?wicket:id urls did not always
get
>> > mapped to the servlet properly, but the /context/mapping/? did, so
that
>> is
>> > the option we went with.
>> >
>> > is that the problem? the browser thinks you are in /context/mapping
>> while
>> > your link assumes you are in /context ?
>> >
>> > what is your servlet mapping?
>> >
>> > -igor
>> >
>> >
>> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Not a single line of code has been changed between the two versions.
>> The
>> >> version with Wicket 1.2.5 jars displays property web pages using css
>> >> files
>> >> in the css subdirectory of the web application root directory, and
the
>> >> version with Wicket 1.2.6 jars cannot find the css files that are in
>> the
>> >> same directory as in the previous version.
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>>
-------------------------------------------------------------------------
>> >> 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
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10204234
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-------------------------------------------------------------------------
>> 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
>
>

--
View this message in context:
http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10205161
Sent from the Wicket - User mailing list archive at Nabble.com.


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