On Thu, Dec 9, 2010 at 5:46 AM, Carl-Eric Menzel <[email protected]>wrote:
> if you can initialize your resource in a page constructor, you can do > the same thing with an IInitializer. You could create shared resources > there, for example - then just use any of the applicable resource > classes and use TextTemplate for interpolation. > Not really. You could have dynamic resources referenced in your constructor that depend on instance variables, or the model that was passed into the constructor, etc.... For anything that doesn't need that, you are right: it's better to use a shared resource. But, if you must rely on state from the page, you can't really use a shared resource. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
