This content has been marked as final.
Show 3 replies
-
1. Re: Seam-International Glassfish 3.1 - AvailableLocales
lightguard Oct 24, 2011 6:46 PM (in response to bardioc)I'd have to look at try (this could certainly be done with an arquillian test to verify it across servers). I've also ask Ken to take a look. Would you mind trying JBoss AS7? Glassfish still has some bugs in their CDI integration.
-
2. Re: Seam-International Glassfish 3.1 - AvailableLocales
kenfinni Oct 25, 2011 9:12 AM (in response to bardioc)Heiko,
I'm not sure what's happening there, as your code appears identical to the tests we run in the international testsuite as part of the build.
If you look at CustomLocaleConfiguration and AvailableLocalesTest, they are identical to yours.
Are there any Weld warnings on startup?
Otherwise, I'd have to agree with Jason that this looks like a bug in CDI integration of Glassfish as these tests run fine on AS7 and Weld Embedded.
Ken
-
3. Re: Seam-International Glassfish 3.1 - AvailableLocales
ratking Oct 25, 2011 9:27 AM (in response to bardioc)// try this ... import javax.annotation.PostConstruct; import javax.enterprise.event.Observes; import org.jboss.solder.servlet.WebApplication; import org.jboss.solder.servlet.event.Initialized; import org.jboss.seam.international.locale.LocaleConfiguration; /** * Init data when Solder Servlet fires an event notifying observers that the web application is being initialized. */ public class CustomLocaleConfiguration extends LocaleConfiguration { public void setup(@Observes @Initialized WebApplication webapp) { addSupportedLocaleKey("en"); addSupportedLocaleKey("de"); } }