WCM-14 fix to only allow internal website name to contain valid characters for use as JSF component IDs

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4108 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-10-13 10:53:06 +00:00
parent eb50797630
commit a78ae48c99

View File

@@ -60,8 +60,8 @@ public class CreateWebsiteWizard extends BaseWizardBean
private static Log logger = LogFactory.getLog(CreateWebsiteWizard.class);
protected String name;
protected String title;
protected String name;
protected String description;
private String websitesFolderId = null;
@@ -166,7 +166,7 @@ public class CreateWebsiteWizard extends BaseWizardBean
}
// set the property on the node to reference the AVM store
this.nodeService.setProperty(nodeRef, ContentModel.PROP_AVMSTORE, this.name);
this.nodeService.setProperty(nodeRef, ContentModel.PROP_AVMSTORE, DNSNameMangler.MakeDNSName(this.name));
// navigate to the Websites folder so we can see the newly created folder
this.navigator.setCurrentNodeId(websiteParentId);