org.alfresco.web.forms.xforms
Class XFormsProcessor

java.lang.Object
  extended by org.alfresco.web.forms.xforms.XFormsProcessor
All Implemented Interfaces:
java.io.Serializable, FormProcessor

public class XFormsProcessor
extends java.lang.Object
implements FormProcessor

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.web.forms.FormProcessor
FormProcessor.ProcessingException, FormProcessor.Session
 
Constructor Summary
XFormsProcessor()
           
 
Method Summary
 FormProcessor.Session process(org.w3c.dom.Document instanceDataDocument, java.lang.String formInstanceDataName, Form form, java.io.Writer out)
          Processes a user interface for inputing data into a form.
 void process(FormProcessor.Session session, java.io.Writer out)
          Generates html text which bootstraps the JavaScript code that will call back into the XFormsBean and get the xform and build the ui.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFormsProcessor

public XFormsProcessor()
Method Detail

process

public FormProcessor.Session process(org.w3c.dom.Document instanceDataDocument,
                                     java.lang.String formInstanceDataName,
                                     Form form,
                                     java.io.Writer out)
                              throws FormProcessor.ProcessingException
Description copied from interface: FormProcessor
Processes a user interface for inputing data into a form.

Specified by:
process in interface FormProcessor
Parameters:
instanceDataDocument - provides the xml instance data if available.
formInstanceDataName - the name of the form instance data being modified.
form - the form to generate for
out - the writer to write the output to.
Throws:
FormProcessor.ProcessingException

process

public void process(FormProcessor.Session session,
                    java.io.Writer out)
             throws FormProcessor.ProcessingException
Generates html text which bootstraps the JavaScript code that will call back into the XFormsBean and get the xform and build the ui.

Specified by:
process in interface FormProcessor
Parameters:
session - the session to use.
out - the writer to write the output to.
Throws:
FormProcessor.ProcessingException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.