I made a panel MyPanel and want to link to some javascript file for
the behaviour

The directory structure looks like this:

package-structure/MyPanel.java
package-structure/scripts/my.jsp

So id added this:

add(HeaderContributor.forJavaScript(MyPanel.class, "scripts/my.js"));

which renders like this:

<script type="text/javascript"
src="/example/app/resources/test.components.MyPanel/scripts/my.js"></script>

That doesn't work. What did I get wrong?

thanks,

Pieter





-- 
Pieter Cogghe
Ganzendries 186
9000 Gent
0487 10 14 21

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