What are ResourceReferences in Wicket, and how do they work?
问题 I have seen examples containing things like this: mountSharedResource("/images/logo.gif", new ResourceReference(ImageScope.class, "logo.gif").getSharedResourceKey()); mountSharedResource("/resource", Application.class.getName() + "/" + resourceKey); But the Javadoc says this for the constructor: ResourceReference(java.lang.Class<?> scope, java.lang.String name); So when you create a ResourceReference , you give it a class. Why? Usually you would want either global scope or the scope of the