I would like to write inside that code (pretty-config.xml):
<pretty-config xmlns="http://ocpsoft.com/prettyfaces/3.3.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ocpsoft.com/prettyfaces/3.3.2
http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.3.2.xsd">
<!--- ??? --->
</pretty-config>
for simply having all my pages mapped to “.jsf / .xhtml”.
/admin/listusers => /admin/listusers.jsf
Thank you
for this you have several options that I can think of off the top of my head, unless you want to map all URLs in your application using the traditional PrettyFaces mappings…
You can either use a PrettyFaces rule, using something like this:
But this gets complicated since you actually need two rules, so you could also use http://ocpsoft.org/rewrite/ for this as well, and things would be a little simpler and more declarative:
The traditional PrettyFaces approach would be to map a URL to each page using url-mapping declarations in the config:
I hope this helps.