Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Alfresco Developer Guide
  • Table Of Contents Toc
  • Feedback & Rating feedback
Alfresco Developer Guide

Alfresco Developer Guide

4 (7)
close
close
Alfresco Developer Guide

Alfresco Developer Guide

4 (7)

Overview of this book

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

Advanced Web Scripts


Now that you have the basics under your belt, let's look at a few advanced web scripts topics.

Running Web Scripts as JSR-168 Portlets

All web scripts are automatically available as JSR-168 portlets. What does this mean? Most portals available today have support for JSR-168, otherwise known as the Portlet 1.0 API (The JSR-286 specification is essentially the next version of the standard or Portlet 2.0.) Theoretically, any portlet developed purely to the portlet API can be run in any portal that is compliant to the specification. The web script framework wraps the web script output in a JSR-168 portlet.

For example, out of the box, Alfresco comes with a My Spaces dashlet. The dashlet is implemented as a couple of web scripts (one calls the other via AJAX). If you point your browser to the following URL:

http://localhost:8080/alfresco/service/ui/myspaces?p=/Company%20Home/Someco

You can see the web script just as you would if you had added the dashlet to your Alfresco Dashboard...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY