I’d like to know which is the recommended approach for multi language in ReWrite. I’m migrating from PrettyFaces configuration and I cannot set the language in Faces session as I do in pretty faces:
This will return NPE in FacesContext.getCurrentInstance(). It does not seem to be available when retrieved from the HttpConfigurationProvider. It does if using the PrettyFaces configuration module but if I remove that and use the ConfigurationProvider, I’ll get the NPE in this setLanguage() method.
Regarding i18n and Rewrite: This depends on what you exactly want to achieve. I recommend to search the forums for this topic. There are quite some approaches for different usecases described in some posts.