Re: Loading resources (CSS,JS) from JARs ?

2010-02-04 Thread Alex Objelean
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

Re: Loading resources (CSS,JS) from JARs ?

2010-02-04 Thread Ernesto Reinaldo Barreiro
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

Re: Loading resources (CSS,JS) from JARs ?

2010-02-04 Thread Ashika Umanga Umagiliya
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

Loading resources (CSS,JS) from JARs ?

2010-02-03 Thread Ashika Umanga Umagiliya
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

AW: Loading resources (CSS,JS) from JARs ?

2010-02-03 Thread Stefan Lindner
[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