To add on to the previous mail. I am in developement mode, but I have
enabled default compression for javascript using the following code:-

resourceSettings.setJavascriptCompressor(new DefaultJavascriptCompressor());

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


On Wed, Apr 7, 2010 at 5:41 PM, Apple Grew <[email protected]> wrote:

> Hi All,
>
> I have put all my JS files in WEB-INF. To let Wicket find them I have
> created my own ResourceStreamLocator. The locator on getting class scope as
> Application simply locates the JS files from 'WEB-INF/js'. The problem is
> how do I enable Wicket's built-in Javascript compression?
>
> I tried the following code with a form:-
> add(JavascriptPackageResource.getHeaderContribution(ApplicationCore.class,
> "js/form.js"));
>
> I can still see the white spaces in the JS code when I try to access them
> from my browser. Pls guide.
>
> Regards,
> Apple Grew
> my blog @ http://blog.applegrew.com/
>

Reply via email to