- fixing naming for variables passed to jsp, xsl and freemarker

- cleanup of generate and regenerate apis and adding documentation.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4203 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-10-24 00:33:52 +00:00
parent 2b35eed0e0
commit eeec32d5ce
9 changed files with 455 additions and 440 deletions

View File

@@ -104,20 +104,20 @@ public class CreateWebContentWizard extends BaseContentWizard
{
if (logger.isDebugEnabled())
logger.debug("generating form data renderer output for " + this.formName);
final Form tt = this.getForm();
final FormsService ts = FormsService.getInstance();
final Form form = this.getForm();
final FormsService fs = FormsService.getInstance();
final NodeRef formInstanceDataNodeRef =
AVMNodeConverter.ToNodeRef(-1, this.createdPath);
final Map<QName, Serializable> props = new HashMap<QName, Serializable>(1, 1.0f);
props.put(WCMModel.PROP_PARENT_FORM, tt.getNodeRef());
props.put(WCMModel.PROP_PARENT_FORM_NAME, tt.getName());
this.nodeService.addAspect(AVMNodeConverter.ToNodeRef(-1, this.createdPath),
props.put(WCMModel.PROP_PARENT_FORM, form.getNodeRef());
props.put(WCMModel.PROP_PARENT_FORM_NAME, form.getName());
this.nodeService.addAspect(formInstanceDataNodeRef,
WCMModel.ASPECT_FORM_INSTANCE_DATA,
props);
ts.generate(this.createdPath.substring(0, this.createdPath.lastIndexOf('/')),
ts.parseXML(this.content),
tt,
this.fileName);
fs.generateRenditions(formInstanceDataNodeRef,
fs.parseXML(this.content),
form);
}
// return the default outcome