Or you can use wro4j (http://code.google.com/p/wro4j/wiki/GettingStarted)
for this. It is a small framework which helps you organize your resources
(js css) by loading from virtually anywhere (classpath, servletContext,
absolute location, disc location, etc). Also, it merge all the resources
Hi,
It is very easy to achieve this. E.g.
public class MyPanel extends Panel {
private static final long serialVersionUID = 1L;
public static ResourceReference JS = new
ResourceReference(MyPanel.class, mypanel.js);
public static ResourceReference CSS = new
Thanks Ernesto,
That is very useful.
Hi,
It is very easy to achieve this. E.g.
public class MyPanel extends Panel {
private static final long serialVersionUID = 1L;
public static ResourceReference JS = new
ResourceReference(MyPanel.class, mypanel.js);
public static
Greetings,
While playing around with wicket-stuffminis , I noticed that the Moontip
load its CSS,JavaScript from the class path (wicketstuff-minis.jar)
eg:
http://localhost:8080/minis-examples/resources/org.wicketstuff.minis.mootipbehavior.MootipBehaviour/mootools.v1.11.js
-which I couldnt
[mailto:auma...@biggjapan.com]
Gesendet: Donnerstag, 4. Februar 2010 02:57
An: users@wicket.apache.org
Betreff: Loading resources (CSS,JS) from JARs ?
Greetings,
While playing around with wicket-stuffminis , I noticed that the Moontip
load its CSS,JavaScript from the class path (wicketstuff-minis.jar