I have done some more experiments and am even more confused but I have got a workaround.
I added the error message bundle name and it made no difference. FYI when it wasn't in there it couldn't find the error messages in StripesResources. I then took the source for DefaultLocalizationBundleFactory, imported into my project and renamed it to make it one of my extensions. Other than adding some log4j trace output I didnt change it at all. I wanted to see what it thought was going on in a bit more detail without haveing to rebuild all of Stripes from its source. Gusess what - it all started to work. I don't understand it but when I load the DefaultLocalizationBundleFactory as an extension it all works but when I don't it doesn't. So I have a workaround but would like to help fix what ever bug was causing this to occur so let me know hwo I can help. Freddy, many thanks for your useful suggestions and for teh well written and invaluable book. Simon Freddy D. wrote: > > Hi Simon, > >> I have attached my web.xml file in case anyone can see the silly mistake >> I >> might have made. I am sure it must be in the param where I tell stripes >> about the localisation bundle. > > You configured the field name bundle, but not the error bundle. This > will > thus default to StripesResources. Is StripesResources.properties (the > one > from the Stripes distribution, with all the default Stripes entries) > present in WEB-INF/classes? (I'm sure it is, but it's worth checking.) > > As a side note, you don't need to specify the LocalePicker.Class > parameter > since you configured the Extension.Packages parameter and your custom > locale picker class is in that package. Stripes will find it > automatically. > > If you still can't find the problem, can you email me a zip of your > source, > and I'll have a look. > > Cheers, > Freddy > http://www.stripesbook.com > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > -- View this message in context: http://old.nabble.com/Can-not-get-Stripes-to-read-properties-files-tp26074042p26156035.html Sent from the stripes-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
