Warning
Currently, the app is configured to drop all tables and recreate them on deployment.
Views are written
as Facelets.
Backing beans are declared as ViewModel
s.
For UI components and for theming purposes, this project uses PrimeFaces.
The XML namespace xmlns:p="http://primefaces.org/ui"
is used in facelets.
To get nicely looking URLs, this project uses prettyfaces. The rewriting rules are defined in WEB-INF/pretty-config.xml.
The mapping ids defined in WEB-INF/pretty-config.xml can then be used
for navigation outcomes (e.g. <p:link outcome="pretty:logout">Logout</p:link>
). For programmatic redirects,
PrettyFacesRedirector
can be used.
I didn't get Jakarta Security to work (see branch not-working-auth). Therefore, I implemented my own auth…
Deploy this on a GlassFish 7 server (Jakarta 10).
You have to create a JDBC Resource with the JNDI name jdbc/cms
.
The user used for this connection pool has to have access to DDL, DQL, DML, and transactions.