Thanks! Seems to do the job! Markus
Am 25.06.2017 um 11:21 schrieb Greg Huber: > If you know the location of the messages you can just use : > > ResourceBundle.getBundle("ApplicationResources", locale); > > Which would be faster than using the LocalizedTextUtil which searches the > hierarchy etc. > > On 25 June 2017 at 07:07, i...@flyingfischer.ch <i...@flyingfischer.ch> > wrote: > >> I get stuck with the refactored LocalizedTextUtil: >> >> We had a change in 2.5.2 which disallowed the use of getText(String key) >> in classes that cannot extend ActionSupport. >> >> I did work around with a custom utility class that did the job, built >> mainly around: >> >> final String value = LocalizedTextUtil.findDefaultText(key, getLocale()); >> >> This does not work anymore. What is the present correct way to get this >> working? Is there any documentation for this? >> >> Thanks! >> >> Markus >> >> >> Am 23.06.2017 um 13:46 schrieb Christoph Nenning: >>> Hi, >>> >>> it's working great in my apps! >>> >>> But I had to adjust some things: >>> - explicitly upgrade versions of logging library and apis (log4j to 2.8.2 >>> and slf4j to 1.7.24) >>> - we have some custom code dealing with TextProvider, that needed to be >>> adapted after refactoring in struts >>> >>> >>> >>> regards, >>> Christoph >>> >>> >>> >>>> From: Lukasz Lenart <lukaszlen...@apache.org> >>>> To: Struts Developers List <dev@struts.apache.org>, >>>> Date: 22.06.2017 15:36 >>>> Subject: Struts 2.5.11 test build is ready >>>> >>>> Hi, >>>> >>>> Please take a time and test the bits - any help is appreciated. Please >>>> report any problems back. I'll call for vote in a week if no problems >>>> will be spotted. >>>> >>>> Staging Maven repo >>>> https://repository.apache.org/content/groups/staging/ >>>> >>>> Standalone artifacts >>>> https://dist.apache.org/repos/dist/dev/struts/2.5.11/ >>>> >>>> Release notes >>>> https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.5.11 >>>> >>>> >>>> Thanks in advance >>>> -- >>>> Ćukasz >>>> + 48 606 323 122 http://www.lenart.org.pl/ >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >>>> For additional commands, e-mail: dev-h...@struts.apache.org >>>> >>> This Email was scanned by Sophos Anti Virus >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >> For additional commands, e-mail: dev-h...@struts.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org