mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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);
|
||||
%>
|
||||
|
Reference in New Issue
Block a user