get xforms instance data saved to the workspace.

get radios and comboboxes calling into setFormValue
get editor working marginally better
get edit to work
 



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3503 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-08-14 21:12:10 +00:00
parent 0cffbc7aa1
commit 6aea4ef3af
9 changed files with 185 additions and 39 deletions

View File

@@ -21,12 +21,33 @@
<%@ page import="org.alfresco.web.app.Application" %>
<%@ page import="org.alfresco.web.templating.*" %>
<%@ page import="org.alfresco.web.bean.content.CreateContentWizard" %>
<%@ page import="org.w3c.dom.Document" %>
<%
CreateContentWizard wiz = (CreateContentWizard)
final CreateContentWizard wiz = (CreateContentWizard)
Application.getWizardManager().getBean();
TemplateType tt = wiz.getTemplateType();
TemplateInputMethod tim = tt.getInputMethods().get(0);
TemplatingService ts = TemplatingService.getInstance();
tim.generate(wiz.getContent() != null ? ts.parseXML(wiz.getContent()) : null, tt, out);
final TemplatingService ts = TemplatingService.getInstance();
final InstanceData instanceData = new InstanceData() {
public Document getContent()
{
try
{
return wiz.getContent() != null ? ts.parseXML(wiz.getContent()) : null;
}
catch (Exception e)
{
e.printStackTrace();
return null;
}
}
public void setContent(final Document d)
{
wiz.setContent(ts.writeXMLToString(d));
}
};
tim.generate(instanceData, tt, out);
%>