This content has been marked as final.
Show 1 reply
-
1. Re: Supported Locales stored in database
frer Jun 3, 2008 10:24 PM (in response to frer)Anyone?
Also is it possible to get the list of supported locales through EL?
For example I would like to be able to do something like this (look at the foreach):
<script> /***************************************************** * Global util methods *****************************************************/ function getLocalizationContext() { var localizationConf = new Hash({ defaultLocale: '#{localeSelector.locale}', currentLocale: '#{localeSelector.language}' }); var localizationContext = new MdaradLocalizationContext(localizationConf); <c:forEach var="currentLocale" items="#{localeSelector.supportedLocales}"> localizationContext.addLocale('#{currentLocale.displayName}'); </c:forEach> return localizationContext; } </script>
I need the localization context for my javascript but I want to retrieve it from seam...is this possible?
This doesn't work because the
supportedLocales
method does not exist anymore on the LocaleSelectorThank you