2.8.4. LocalePolicy Configuration

The LocalePolicy framework is enabled for portlets by configuring the LocalizationLifecycle class in portal's webui configuration file: gatein.ear/portal.war/WEB-INF/webui-configuration.xml.


<application-lifecycle-listeners>
...
    <listener>org.exoplatform.portal.application.localization.LocalizationLifecycle</listener>
</application-lifecycle-listeners>
 

The default LocalePolicy implementation is installed as GateIn Kernel portal service via gatein.ear/portal.war/WEB-INF/conf/portal/web-configuration.xml. Here you can change it to a different value according to your needs.

The following fragment is responsible for installing the service:


<component>
   <key>org.exoplatform.services.resources.LocalePolicy</key>
   <type>org.exoplatform.portal.application.localization.DefaultLocalePolicyService</type>
</component>

Besides implementing LocalePolicy, the service class also needs to implement org.picocontainer.Startable interface to get installed.

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus