Hi Sven, You cant use default localization factory to load multiple resource bundles. The reason Stripes allows you to inject your own is exactly for custom situation like yours.
I had similar problem that I needed to solve and I ended up creating couple lightweight classes to wrap java ResourceBundle that would act as ResourceBundle, but internally it has a list of ResourceBundles - the caller would never know about it. I also ended up creating custom tag similar to <fmt:message/> to avoid cluttering jsps with bundle parameters. Custom tag is calling my own version of ResourceBundle that works with list of resource bundles. If you are interested, I can send you the snippets of the code off the list. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sven Sent: Tuesday, April 15, 2008 12:30 PM To: [email protected] Subject: Re: [Stripes-users] Localisation with bundles does not work Hi Leonard, thanks for this answer. Yes it works fine with the context-param. Thanks ! But the scond part of your answer did I not understand exactly ... "However, if you want stripes to be able to operate across multiple bundles, you'll have to have your own implementation of LocalizationBundleFactory that knows how to do so." I have my own LocalizationBundleFactory but at the moment only a copy of the default :) . Oh not directly. I've split the one StripesResource.properties into to resources - as in the example explain. But I did not understand what can I do to load the resource bundle with this factory. Sorry. Can you explain what you mean or how it works ? That would be very nice to me ! King regards Sven ------------------------------------------------------------------------ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j avaone _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
