On 7/7/07, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:

same for images too. my images are gone as well except for packaged
resources but i will suggest a startup configuration to skip rewriting
static content or something?

meanwhile, so based on what you showed me earlier now, I seriously have to
rename all the static resource link in my project to solve this problem?


well, if you get that prepender working you wont have to, wicket will do it
for you. thats the whole point of it. i dont remember what it is called, i
recall something like contextpathprepender something like that. search for a
type *prepender*, its javadoc contains instructions on how to enable it.

-igor




dats some work for a several page project anyway.

i guess i stick with 1.2.4 cuz project deadlines will not even suggest
this upgrade

On 7/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
>
> On 7/7/07, Ayodeji Aladejebi < [EMAIL PROTECTED]> wrote:
> >
> > does this rewrite also affects static images as in
> > <img src="images/banner_r1_c1.png" /> where banner_r1_c1.png is placed
> > within root/image folder
> >
> > i guess not...
>
>
> it should! so maybe for some reason it is not enabled? can you try with
> 1.2.6?
>
> -igor
>
>
>
>  On 7/7/07, Igor Vaynberg <[EMAIL PROTECTED]> 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
> > > > Wicket-user@lists.sourceforge.net
> > > > 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
> > > Wicket-user@lists.sourceforge.net
> > > 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
> > Wicket-user@lists.sourceforge.net
> > 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
> Wicket-user@lists.sourceforge.net
> 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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to