> Really ?! .. but in which version has been implemented.
>
> I'm using Wicket 1.2.3 and adding a javascript using the following code:
That's a very old version. But look at the datepicker in extensions
for that project, as that uses relative images from JavaScript.
> add( new JavaScriptReference("sortable_js", new
> ResourceReference(getClass(),"sortable/sortabletable.js")))
Be *very* careful using getClass() there. Are you sure the actual
class isn't a subclass of the class you really want? Try to use
MyClass.class in resource references.
> Is not translating the path for relative resources ..
If your javascript file is served from /resources/... then everything
that is declared relatively should go through that as weell.
-------------------------------------------------------------------------
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