Splash › Forums › Rewrite Users › Multilanguage when migration from prettyfaces
Tagged: i18n multilanguage
This topic contains 0 replies, has 1 voice, and was last updated by icordoba 3 years, 7 months ago.
I’m migrating from PrettyFaces configuration to new Rewrite class based.
I’ve been reading entry http://ocpsoft.org/support/topic/handling-multilanguage-jsf-application-with-rewrite/ but can’t figure out how to port the multi language approach of my custom content manager. For example, to force home page to be spanish I currently have:
<pattern value=”/” />
userSessionBean is a DCI session scope bean. Method setLanguage(“es”) just invokes
This won’t work with
as FacesContext.getCurrentInstance() will return null, so I get a NPE.
Any help on how to solve this? Thanks.
You must be logged in to reply to this topic.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!