Hi all,
A short while ago someone posted a question about this
(http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-migration-questions-td4651723.html).
I encountered the same problem, and found a way which is cleaner (imho)
than the suggestion at the end of that thread.
It does not require the developer to use page parameters when generating
a resource url.
Basically, what I've done is make a copy of the ResourceMapper, and
change it so it handles all resources with a certain scope. This means
it'll automatically handle the same resource references you are used to
working with.
I've put it on pastebin for those interested: http://pastebin.com/iSssGHrE
Use it like so:
(in app init):
mount( new ClassResourcesMapper("/res/classX", ClassX.class ) );
--
Met vriendelijke groet,
Kind regards,
Bas Gooren