Is this somehow related to my post about a double slash "//" appearing
in my URLs?
On Sat, 2007-07-07 at 15:03 -0700, Igor Vaynberg wrote:
> On 7/7/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
> Maybe there is some best practice that I violated but
> sincerely simply upgrading to 1.2.6 wicket.jar just scatters
> my CSS and I dont even know what to do about it.
>
> A Style heading as simple as what is below did fine with 1.2.4
> but my site just scattered when i swapped jar files:
> The style_1.css is in the root folder and it has been working
> fine
> my context root is /app/* and not /app (which dint solve the
> problem either)
>
> it doesnt work because we have fixed a bug that did not always
> properly add the trailing slash
>
> for example, older version of wicket sometimes generated urls like
>
> (1) /context/app?wicket...
>
> or
>
> (2) /context/app/?wicket....
>
> in case of (1) your code would work because your href would resolve
> to /context/style_1.css, in case of (2) it would not because it would
> resolve to /context/app/style_1.css
>
> 1.2.6 makes sure urls always look like (2).
>
> so if you want to fix it change the href to href="../style_1.css"
>
> however notice that in both 1.2.4 and 1.2.6 these kinds of hrefs will
> break if you access the page through a mount. that is why wicket has a
> feature that prepends relative urls and makes them context-absolute.
>
> so really even though you have
>
>
> <link href="style_1.css" rel="stylesheet" type="text/css" />
>
> your output should be something like this:
>
> <link href="/context/style_1.css" rel="stylesheet" type="text/css" />
>
> maybe we do not rewrite href of a link tag, something to check. if not
> please add a rfe into jira.
>
> -igor
>
>
> <link href="style_1.css" rel="stylesheet" type="text/css" />
> <style type="text/css">
> #tabs7 a {
> float:left;
> background:url(" tableft7.gif") no-repeat left
> top;
> margin:0;
> padding:0 0 0 4px;
> text-decoration:none;
> }
> </style>
>
>
> any tips
>
>
>
> -------------------------------------------------------------------------
> 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