1 Reply Latest reply on Jul 11, 2008 1:42 AM by Stefan Karwowski

    Localized messages in asynchronous method activated at startup

    Stefan Karwowski Newbie

      Hi
      I have an EJB3 application with Seam. In method activated by @Observer(org.jboss.seam.postInitialization) I call asynchronous method of another component with 1 minute delay. In this asynchronous method I cannot get localized messages. I have a messages_pl.properties file in WEB-INF/classes which is declared in components.xml. Default locale in faces-config is set to pl. OS locale is set to pl_PL. I try:


      @In("#{messages[key]}")



      and


      SeamResourceBundle.getBundle().getString(key)



      and does not working. This code is working fine when component is accessed by jsf request. What can I do?