Re: How to store/load strings shared by many (but not all) pages?

2009-10-05 Thread Pedro Sena
I was thinking about this yesterday... This is a very common scenario, specially for i18n messages related to exceptions. Thanks for the info =) On Mon, Oct 5, 2009 at 9:52 AM, Robin Sander wrote: > > Wicket uses a chain of resolvers, by default these are: (see Settings > class) > > Componen

Re: How to store/load strings shared by many (but not all) pages?

2009-10-05 Thread Robin Sander
Wicket uses a chain of resolvers, by default these are: (see Settings class) ComponentStringResourceLoader, PackageStringResourceLoader, ClassStringResourceLoader and ValidatorStringResourceLoader. So besides the component specific resource you may define respources per package (e.g. '

Re: How to store/load strings shared by many (but not all) pages?

2009-10-04 Thread David Chang
Igor, thanks so much for the tip! Cheers! --- On Sun, 10/4/09, Igor Vaynberg wrote: > From: Igor Vaynberg > Subject: Re: How to store/load strings shared by many (but not all) pages? > To: users@wicket.apache.org > Date: Sunday, October 4, 2009, 12:52 AM > YourApplicationC

Re: How to store/load strings shared by many (but not all) pages?

2009-10-03 Thread Igor Vaynberg
YourApplicationClass.properties sitting next to you YourApplicationClass.java/class will do the trick. all components/pages have access to properties stored there. -igor On Sat, Oct 3, 2009 at 8:32 PM, David Chang wrote: > I am reading <> and have this i18n/i10n-related question : > > Suppose th

How to store/load strings shared by many (but not all) pages?

2009-10-03 Thread David Chang
I am reading <> and have this i18n/i10n-related question : Suppose that I have a string that is used on multiple (but NOT ALL) pages. One solution is that I can put this string in the property files for each page on which the string is used. Any other better solutions? Thanks for your input!