");
@@ -567,6 +581,37 @@ public class AVMBrowseBean implements IContextListener
UIContextService.getInstance(FacesContext.getCurrentInstance()).notifyBeans();
}
+ public void submitNode(ActionEvent event)
+ {
+ setupContentAction(event);
+
+ UserTransaction tx = null;
+ try
+ {
+ FacesContext context = FacesContext.getCurrentInstance();
+ tx = Repository.getUserTransaction(context, true);
+ tx.begin();
+
+ Action action = this.actionService.createAction("simple-avm-submit");
+ this.actionService.executeAction(action, getAvmNode().getNodeRef());
+
+ // commit the transaction
+ tx.commit();
+
+ // if we get here, all was well - output friendly status message to the user
+ String msg = "Successfully submitted: " + getAvmNode().getName();
+ FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, msg);
+ String formId = Utils.getParentForm(context, event.getComponent()).getClientId(context);
+ context.addMessage(formId + ':' + "sandboxes-panel", facesMsg);
+ }
+ catch (Throwable err)
+ {
+ Utils.addErrorMessage(MessageFormat.format(Application.getMessage(
+ FacesContext.getCurrentInstance(), Repository.ERROR_GENERIC), err.getMessage()), err);
+ try { if (tx != null) {tx.rollback();} } catch (Exception tex) {}
+ }
+ }
+
// ------------------------------------------------------------------------------
// Private helpers
diff --git a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java
index 28d0b76c90..d04dbde837 100644
--- a/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java
+++ b/source/java/org/alfresco/web/bean/wcm/CreateWebsiteWizard.java
@@ -404,7 +404,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
private void tagStoreDNSPath(String store, String... components)
{
String path = store + ":/" + AVMConstants.DIR_APPBASE + '/' + AVMConstants.DIR_WEBAPPS;
- // TODO: DNS name mangle the property name - can only contain value DNS characters!
+ // DNS name mangle the property name - can only contain value DNS characters!
String dnsProp = AVMConstants.PROP_DNS + DNSNameMangler.MakeDNSName(components);
this.avmService.setStoreProperty(store, QName.createQName(null, dnsProp),
new PropertyValue(DataTypeDefinition.TEXT, path));
diff --git a/source/web/WEB-INF/faces-config-beans.xml b/source/web/WEB-INF/faces-config-beans.xml
index 7323c2660a..e7a87534a3 100644
--- a/source/web/WEB-INF/faces-config-beans.xml
+++ b/source/web/WEB-INF/faces-config-beans.xml
@@ -697,6 +697,10 @@