then build the urls yourself and use packagedtexttemplate to preprocess the
javascript before you output it

we need better support for this, but its not there yet.

-igor


On 4/17/07, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:

Guys, the problem is another, lets recap:

I've a folder with a javascript, a css and some images. From both the css
and the javascript I references these images using a relative path. For
example in the css url( the-image-1.gif) and in the javascript file
image.src = 'the-image-2.gif'.

The css works fine instead the javascript image link is broke.

The problem is that a relative path in a CSS is relative to the location
of the css itself, so loading the css under the wicket
/resource/package.name.Class/ path it works fine.

BUT relative path in a javascript are relative to the page which loaded
the script NOT the script location, so the relative link will break!

Thanks, Paolo


On 4/16/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 4/16/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > in wicket 1.2.3 we do not allow default access to packaged resources
> without
> > explicitly adding a shared resource do we? i think that is the
> problem. his
> > css is a shared resource, but everything alongside it is not. so this
> would
> > for in 1.3 but not in 1.2.3.
>
> Duh! Indeed. I completely forgot about that.
>
> Eelco
>
> -------------------------------------------------------------------------
>
> 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

Reply via email to