Book Image

Alfresco Developer Guide

Book Image

Alfresco Developer Guide

Overview of this book

Table of Contents (17 chapters)
Alfresco Developer Guide
Credits
About the Author
About the Reviewers
Preface
Index

Customizing Web Client JSP Pages


There may be requirements you can't meet simply by adding new menu items, dialogs, or wizards. Customizing the login page, which you did in Chapter 2, is one example. Regardless of whether you are overriding an existing JSP with your own version or creating a new JSP from scratch, the steps involved are the same:

  1. Create (or copy and modify) the JSP using JSF, Alfresco, and custom tag libraries.

  2. Write JSF-managed backing beans as necessary to handle logic.

  3. Update faces-config.xml with the appropriate navigation rules.

  4. Optionally, update web-client-config-custom.xml with navigation rule overrides.

  5. Externalize strings to a properties file.

Overriding Navigation Rules with Type-specific Settings

One thing the login page example didn't cover is navigation rule overrides. Let's look at a simple out of the box example to understand how this works.

In Alfresco WCM, web projects are stored in web project folders (wca:webfolder). Just like standard folders, you can browse...