mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Rhino JavaScript integration checkpoint:
- Added APIs to allow updating and addition of node properties - Added APIs for content manipulation - Added APIs to allow creation of files and folders git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2749 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -827,7 +827,9 @@ public abstract class BaseActionWizard extends BaseWizardBean
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build the param map for the current Action instance
|
* Build the param map for the current Action instance.
|
||||||
|
* <p>
|
||||||
|
* Based on the params set by the UI, build the params needed to create the action.
|
||||||
*
|
*
|
||||||
* @return param map
|
* @return param map
|
||||||
*/
|
*/
|
||||||
@@ -1063,6 +1065,7 @@ public abstract class BaseActionWizard extends BaseWizardBean
|
|||||||
String id = (String)this.currentActionProperties.get(PROP_SCRIPT);
|
String id = (String)this.currentActionProperties.get(PROP_SCRIPT);
|
||||||
NodeRef scriptRef = new NodeRef(Repository.getStoreRef(), id);
|
NodeRef scriptRef = new NodeRef(Repository.getStoreRef(), id);
|
||||||
actionParams.put(ScriptActionExecutor.PARAM_SCRIPTREF, scriptRef);
|
actionParams.put(ScriptActionExecutor.PARAM_SCRIPTREF, scriptRef);
|
||||||
|
actionParams.put(ScriptActionExecutor.PARAM_SPACEREF, this.navigator.getCurrentNode().getNodeRef());
|
||||||
}
|
}
|
||||||
|
|
||||||
return actionParams;
|
return actionParams;
|
||||||
|
@@ -103,8 +103,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr><td class="paddingRow"></td></tr>
|
<tr><td class="paddingRow"></td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><h:outputText value="#{msg.action_script_select}"/>:</td>
|
<td><nobr><h:outputText value="#{msg.action_script_select}"/>:</nobr></td>
|
||||||
<td>
|
<td width=100%>
|
||||||
<%-- Scripts drop-down selector --%>
|
<%-- Scripts drop-down selector --%>
|
||||||
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.script}">
|
<h:selectOneMenu value="#{WizardManager.bean.actionProperties.script}">
|
||||||
<f:selectItems value="#{TemplateSupportBean.scriptFiles}" />
|
<f:selectItems value="#{TemplateSupportBean.scriptFiles}" />
|
||||||
|
Reference in New Issue
Block a user