Implemented the various classes needed to create a new JSF based runtime for webscripts. Added a new JSF component that implements the webscript runtime and is capable of rendering the output from a webscript url. This means that webscripts can be used in JSF pages, such as new dashlets in the Dashboard. Added some example dashlets that expose the Document List, My Tasks and My Web Forms webscripts as dashlets.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5664 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2007-05-11 10:34:29 +00:00
parent 4d0f604256
commit 4ca29b11dc
19 changed files with 777 additions and 113 deletions

View File

@@ -303,7 +303,10 @@ public abstract class WebScriptRuntime
* @param scriptRes Web Script Response
* @return true => execute script, false => do not execute script
*/
protected abstract boolean preExecute(WebScriptRequest scriptReq, WebScriptResponse scriptRes);
protected boolean preExecute(WebScriptRequest scriptReq, WebScriptResponse scriptRes)
{
return true;
}
/**
* Post-execution hook
@@ -313,6 +316,7 @@ public abstract class WebScriptRuntime
* @param scriptReq Web Script Request
* @param scriptRes Web Script Response
*/
protected abstract void postExecute(WebScriptRequest scriptReq, WebScriptResponse scriptRes);
protected void postExecute(WebScriptRequest scriptReq, WebScriptResponse scriptRes)
{
}
}