Re: Jar for download from the page (same as prettyfaces).

Splash Forums Rewrite Users Jar for download from the page (same as prettyfaces). Re: Jar for download from the page (same as prettyfaces).

#22364

Tony Herstell
Participant

and before you ask ;)

pretty-config.xml

<?xml version="1.0" encoding="UTF-8"?>
<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">

<!-- PrettyFaces always navigates with POST-REDIRECT-GET
===================================================
No need for ?faces-redirect=true

pretty-config.xml is :
<url-mapping id="manageEvents">
<pattern value="/events/manage" />
<view-id value="/pages/events/manageEvents.xhtml" />
</url-mapping>
...
public String goManageEvents() {
// ...
return "pretty:manageEvents";
}
-->

<url-mapping id="home">
<pattern value="/"></pattern>
<view-id value="/pages/landing.xhtml"/>
</url-mapping>

<url-mapping id="error">
<pattern value="/error"></pattern>
<query-param name="exception">#{exception}</query-param>
<view-id value="/pages/error/generalError.xhtml"/>
</url-mapping>

<url-mapping id="viewExpired">
<pattern value="/viewExpired"></pattern>
<view-id value="/pages/error/viewExpired.xhtml"/>
</url-mapping>

<url-mapping id="manageEvents">
<pattern value="/events/manage"></pattern>
<view-id value="/pages/events/manageEvents.xhtml"/>
</url-mapping>

<url-mapping id="createEvent">
<pattern value="/events/create"></pattern>
<view-id value="/pages/events/createEvent.xhtml"/>
</url-mapping>

</pretty-config>