need to pass cookies to the submission handler, otherwise content is written to the wrong xformsbean.

removing the submit button.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3520 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Ariel Backenroth
2006-08-15 15:28:29 +00:00
parent 6aea4ef3af
commit d385022212
4 changed files with 57 additions and 13 deletions

View File

@@ -103,17 +103,8 @@ public class XFormsBean
LOGGER.debug(this + " building xform");
final FacesContext context = FacesContext.getCurrentInstance();
final ResponseWriter out = context.getResponseWriter();
final Map requestParameters = context.getExternalContext().getRequestParameterMap();
// final String templateTypeName = (String)requestParameters.get("template_type_name");
LOGGER.debug("building xform for " + this.tt.getName()); //templateTypeName);
// final TemplatingService ts = TemplatingService.getInstance();
// final TemplateType tt = ts.getTemplateType(templateTypeName);
// final XFormsInputMethod tim = (XFormsInputMethod)
// tt.getInputMethods().get(0);
// final Document form = tim.getXForm(tt);
LOGGER.debug("building xform for " + this.tt.getName());
final Node form = this.chibaBean.getXMLContainer();
final TemplatingService ts = TemplatingService.getInstance();
ts.writeXML(form, out);