Hi, See https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/core/request/mapper/BasicResourceReferenceMapper.java?source=c#L135
The last parameter is 'true'. It says 'create ResRef if not existing in the ResourceReferenceRegistry'. So yes, you can load any .js file by specifying its full path. Wicket will use the parsed locale, style and variation to look up just one path in the file system. Martin Grigorov Wicket Training and Consulting On Wed, Jan 22, 2014 at 6:16 PM, tertioptus <[email protected]> wrote: > I have a few JS files in a package, and I found that I can still reach them > provided I use a specific URL. Such that I don't even need to create a > Resource Reference for the file. > > For instance: > > /wicket/resource/com.somename.SomeClassInPackage/some_resource_under_same_package.js > > *Is it safe to assume that the Wicket application can reach all resources > this way, all the time, without a resource reference being instantiated? > * > And are there any drawbacks? Like the mapper has to look several places > for > the file when it is not registered in advance. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Are-resource-reference-instances-necessary-to-access-a-resource-tp4663887.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
