Re: Apllying one URL mapping for all urls

Splash Forums PrettyFaces Users Apllying one URL mapping for all urls Re: Apllying one URL mapping for all urls

#23398

Unfortunately this is currently not possible with PrettyFaces. The recommended way is to create one mapping for each mapping.

If you really want to simplify the configuration, you could have a look at Rewrite, which is the successor of PrettyFaces.

Rewrite

You can have a look at the example to get an idea how Rewrite works:

Rewrite Examples

You could implement your usecase with something like:

.addRule( Join.path("/company/{p}").to("/company/{p}.jsf").where("p").matches("[a-z]+") )