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 the Web Client with Web Scripts


Web scripts are not limited just to being an easy way to interface other applications with the repository. They can be used to customize or extend the existing web client. The web client delivered as part of 3.0 is based entirely on web scripts. The "classic" web client can also leverage web scripts. You could create custom components that make web script calls via AJAX. For example, maybe SomeCo wants Alfresco users to be able to use the ratings widget you created earlier from within the web client.

One hook that can help you leverage web scripts from within the web client is the "webscript" JSP tag. You can use it to call any web script from any JSP running within the Alfresco web application. For example, suppose you wanted to let SomeCo users add the Whitepaper list as a dashlet to the Alfresco dashboard. In the real world, you'd spend some time making it a bit more presentable. For this example, you'll take the HTML response of the Whitepaper...