a bunch of refactoring of back end templating wizards. removing the chiba-web stuff as it is no longer used. more updates to dojo generator. adding in an XFormsBean to handle ajax requests from the form.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3500 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-08-14 18:14:21 +00:00
parent 129728f447
commit 0cffbc7aa1
196 changed files with 1245 additions and 28013 deletions

View File

@@ -18,24 +18,15 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<%@ page import="org.alfresco.web.app.Application" %>
<%@ page import="org.alfresco.web.templating.*" %>
<%@ page import="javax.faces.context.FacesContext" %>
<%@ page import="org.alfresco.web.app.servlet.FacesHelper" %>
<%@ page import="org.alfresco.web.bean.content.CreateContentWizard" %>
<%
CreateContentWizard wiz = (CreateContentWizard)
Application.getWizardManager().getBean();
TemplateType tt = wiz.getTemplateType();
TemplateInputMethod tim = tt.getInputMethods().get(0);
TemplatingService ts = TemplatingService.getInstance();
CreateContentWizard ccw = (CreateContentWizard)
FacesHelper.getManagedBean(FacesContext.getCurrentInstance(), "CreateContentWizard");
TemplateType tt = ts.getTemplateType(ccw.getTemplateType());
final TemplateInputMethod tim = tt.getInputMethods().get(0);
String url = tim.getInputURL(tt.getSampleXml(tt.getName()), tt);
tim.generate(wiz.getContent() != null ? ts.parseXML(wiz.getContent()) : null, tt, out);
%>
<f:verbatim>
<div style='width:100%; height:360px'>
<iframe src="<%= url %>"
style="overflow: auto;width: 100%; height: 100%">
</iframe>
</div>
</f:verbatim>