Re: Generic URL mapping, is it possible ?

Splash Forums PrettyFaces Users Generic URL mapping, is it possible ? Re: Generic URL mapping, is it possible ?

#21482

As posted on StackOverflow:

You might be better off using Rewrite (beta) which lets you do more powerful configuration. Or PrettyFaces 4.0.0-SNAPSHOT, which uses Rewrite as the core:

https://github.com/ocpsoft/socialpm/blob/master/web/src/main/java/com/ocpsoft/socialpm/URLRewriteConfiguration.java

.addRule(Join.path("/{page}").to("/views/{page}.xhtml"))

Hope this helps. I’d be interested to see what you think of Rewrite, since we are looking for feedback now.