You could use resource bundles, define all ResourceReferences within the bundle and within each ResourceReference their dependencies. If you would use any resourcereference within a renderHead method, all dependencies and resources would placed at the right position and you would save some requests.
2014-09-09 12:35 GMT+02:00 brushmate <brushm...@gmail.com>: > Thanks for your answer. So everytime I want to reference a resource, I have > to declare its dependencies? > > I want to register it globally, because I can use it on different pages > then > and if the path to the resource changes in the future, I only need to > update > it at one place. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-register-a-global-resource-with-dependencies-tp4667403p4667407.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >