Multilanguage when migration from prettyfaces

Splash Forums Rewrite Users Multilanguage when migration from prettyfaces

This topic contains 0 replies, has 1 voice, and was last updated by  icordoba 7 years, 6 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #26316


    I’m migrating from PrettyFaces configuration to new Rewrite class based.
    I’ve been reading entry 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:

    <url-mapping id=”esHome”>
    <pattern value=”/” />
    <view-id value=”/index.xhtml”/>

    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.

Viewing 1 post (of 1 total)

The forum ‘Rewrite Users’ is closed to new topics and replies.

Comments are closed.