Calling a web script from JSR-168 portals and the JSF page
The Web script framework in Alfresco provides a helper to make a call to Alfresco web scripts from some of the client environments that do not know HTTP. Hence, it makes it easy to invoke web scripts from such an environment and a web script will be invoked using a mechanism that is familiar to the calling environment. In order to allow JSR-168 portals and JSF pages to naturally invoke a web script as per their environment, the web script framework in Alfresco has provided helpers for them. Let's take a look at them and how they work at a high level.
Calling a web script from JSR-168 portals
It is possible to invoke an Alfresco web script as if it were a JSR-portlet. We will take a look at the configuration required to be done in Alfresco for this. Entry for the web script should be provided in portlet.xml
. The web script URL should be configured as a JSR-portal URL under the scripturl
param in order to be able to invoke the web script...