Re: I am having trouble mounting shared resources

2011-08-05 Thread Alec Swan
>> From: Alec Swan [mailto:alecs...@gmail.com] >> Sent: Friday, 05. August 2011 19:30 >> To: users@wicket.apache.org >> Subject: Re: I am having trouble mounting shared resources >> >> Thanks, mounting JS worked perfectly. >> >> However, mounting C

RE: I am having trouble mounting shared resources

2011-08-05 Thread Miroslav F.
ces.java is just empty class (for classloader to find your > > resource): > > package com.myapp.resources; > > public class MyResources > > { > > } > > > > and then in html markup you can write: > > > > > > Hope helps, > > &

Re: I am having trouble mounting shared resources

2011-08-05 Thread Alec Swan
and then in html markup you can write: > > > Hope helps, > > Miro > > > > >> -Original Message- >> From: Alec Swan [mailto:alecs...@gmail.com] >> Sent: Friday, 05. August 2011 08:42 >> To: users@wicket.apache.org >> Subject: I am having t

RE: I am having trouble mounting shared resources

2011-08-05 Thread Miroslav F.
l.com] > Sent: Friday, 05. August 2011 08:42 > To: users@wicket.apache.org > Subject: I am having trouble mounting shared resources > > Hello, > > I am having troubles figuring out how to organize my static resources. > > I would like to map a static URL alias, e.g. /js/f

Re: I am having trouble mounting shared resources

2011-08-05 Thread Martin Grigorov
Quick solution: Resource res = new JavaScriptResourceReference().getResource(); mountSharedResource(somePath, res); On Fri, Aug 5, 2011 at 10:01 AM, Alec Swan wrote: > We are using Wicket 1.4.17 but we would like to do something like this > mountResource("/mount/path", new SomeResourceRefere

Re: I am having trouble mounting shared resources

2011-08-05 Thread Alec Swan
We are using Wicket 1.4.17 but we would like to do something like this mountResource("/mount/path", new SomeResourceReference()) as described in http://wicketinaction.com/ for Wicket 1.5. On Fri, Aug 5, 2011 at 12:41 AM, Alec Swan wrote: > Hello, > > I am having troubles figuring out how to organ

I am having trouble mounting shared resources

2011-08-04 Thread Alec Swan
Hello, I am having troubles figuring out how to organize my static resources. I would like to map a static URL alias, e.g. /js/fancybox, to a file such as /js/fancybox/version123/fancybox-123.js. I also want to be able to update the file version and after that have it served under the same alias.