Reply To: Handling Multilanguage JSF Application with Rewrite

Splash Forums Rewrite Users Handling Multilanguage JSF Application with Rewrite Reply To: Handling Multilanguage JSF Application with Rewrite

#24017

My guess is that your PrimeFaces components don’t work any more because some of the PrimeFaces resources match your inbound pattern and are therefore rewritten by your rule. A resource like /javax.faces.resources/jquery.js would for example match /{lang}/{path}. So you should restrict the lang parameter somehow. Something like:


.addRule()
.when(Direction.isInbound().and(Path.matches("/{lang}/{path}")))
.perform(....)
.where("lang").matches("[a-z]{2}")

Or:


.where("lang").matches("en|ar")