-
1. Re: How to get default Locale in @Startup class?
gavin.king Feb 7, 2006 5:55 PM (in response to liudan2005)I don't understand why you have to do this in an @Startup component. Why not just do it lazily when the component is first needed?
-
2. Re: How to get default Locale in @Startup class?
liudan2005 Feb 7, 2006 6:42 PM (in response to liudan2005)The application initialization process takes quite a while. For our demo project, it would take a long time to process the first operation if we don't put those code in @Startup class. This is generally acceptable but not very nice in some situations(hard to explain here). Anyway, it's not gonna be a big problem. I am just a little curious to know if there's a standard way.
Thanks Gavin. -
3. Re: How to get default Locale in @Startup class?
gavin.king Feb 7, 2006 8:15 PM (in response to liudan2005)Well, the other option is to get your resource bundle the oldfashioned way, just like the built-in Seam resourceBundle component does it. Not sure why you wanted to go via JSF.
AFAIK, JSF has no "startup" event, so that is why we are using a servlet context listener to do initialization shuff. -
4. Re: How to get default Locale in @Startup class?
liudan2005 Feb 8, 2006 9:21 AM (in response to liudan2005)Thanks Gavin. I guess I'll do it the old fashioned way then.