PubMan Presentation Code Rework

MPDL

This page is supposed to be used for the identification and analysis of problems and suggestions for improvements in the PubMan Presentation package.

Duplicate code

 * In many pages, the same JSPF/HTML code is used with no or only slight differences. (e.g. submenus in ViewItemPage, ViewItemStatistics, ViewItemRevisions etc.)
 * Possible solution: Introduction of a templating framework and refactoring the JSP/JSPF pages.
 * Facelets provides such functionality and allows to pass parameters to JSF/JSPF snippets. Thus, slightly differing JSPF snippets could be implemented in one file using different parameter values.
 * There is also a JSP Taglib for templates, without the possibility to pass parameters.

Pretty Urls / Bookmarkable URLs

 * Problem: JSF does not support bookmarkable or pretty URLs from scratch
 * Solutions:
 * UrlRewriter (as in Faces).
 * Needs a lot of rework
 * PrettyFaces
 * Integrated in JSF
 * Also needs rework of classes, JSPFs and navigation handling.
 * PrettyUrlPhaseListener

Duplicate code
1. Find duplicate code using a Duplicate Code finder

2. Duplicate code should be consolidated where possible.