org.alfresco.web.forms.xforms
Class XFormsBean

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

public class XFormsBean
extends java.lang.Object
implements java.io.Serializable

Bean for interacting with the chiba processor from the ui using ajax requests. Manages the chiba bean lifecycle.

See Also:
Serialized Form

Nested Class Summary
static class XFormsBean.AlfrescoSubmissionHandler
           
 
Field Summary
static java.lang.String BEAN_NAME
           
 
Constructor Summary
XFormsBean()
           
 
Method Summary
 org.alfresco.web.forms.xforms.XFormsBean.XFormsSession createSession(org.w3c.dom.Document formInstanceData, java.lang.String formInstanceDataName, Form form)
          Initializes the chiba process with the xform and registers any necessary event listeners.
 void fireAction()
          fires an action associated with a trigger.
protected  Schema2XFormsProperties getSchema2XFormsProperties()
           
 void getXForm()
          Writes the xform out to the http servlet response.
 org.alfresco.web.forms.xforms.XFormsBean.XFormsSession getXformsSession()
           
 void handleAction()
          handles submits and sets the instance data.
 void handleSubmit(org.w3c.dom.Node result)
           
 void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
           
 void setNavigator(NavigationBean navigator)
           
 void setRepeatIndeces()
          sets the value of a control in the processor.
 void setSchema2XFormsProperties(Schema2XFormsProperties schema2XFormsProperties)
           
 void setXFormsSession(org.alfresco.web.forms.xforms.XFormsBean.XFormsSession xformsSession)
           
 void setXFormsValue()
          sets the value of a control in the processor.
 void swapRepeatItems()
          Swaps model nodes to implement reordering within repeats.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_NAME

public static java.lang.String BEAN_NAME
Constructor Detail

XFormsBean

public XFormsBean()
Method Detail

getXformsSession

public org.alfresco.web.forms.xforms.XFormsBean.XFormsSession getXformsSession()

setSchema2XFormsProperties

public void setSchema2XFormsProperties(Schema2XFormsProperties schema2XFormsProperties)
Parameters:
schema2XFormsProperties - the schema2XFormsProperties to set.

getSchema2XFormsProperties

protected Schema2XFormsProperties getSchema2XFormsProperties()

setAvmBrowseBean

public void setAvmBrowseBean(AVMBrowseBean avmBrowseBean)
Parameters:
avmBrowseBean - the avmBrowseBean to set.

setNavigator

public void setNavigator(NavigationBean navigator)

setXFormsSession

public void setXFormsSession(org.alfresco.web.forms.xforms.XFormsBean.XFormsSession xformsSession)
                      throws FormBuilderException,
                             org.chiba.xml.xforms.exception.XFormsException
Parameters:
xformsSession - the current session
Throws:
FormBuilderException
org.chiba.xml.xforms.exception.XFormsException

createSession

public org.alfresco.web.forms.xforms.XFormsBean.XFormsSession createSession(org.w3c.dom.Document formInstanceData,
                                                                            java.lang.String formInstanceDataName,
                                                                            Form form)
Initializes the chiba process with the xform and registers any necessary event listeners.


getXForm

public void getXForm()
              throws java.io.IOException,
                     org.chiba.xml.xforms.exception.XFormsException
Writes the xform out to the http servlet response. This allows us to use the browser to parse the xform using XMLHttpRequest.

Throws:
java.io.IOException
org.chiba.xml.xforms.exception.XFormsException

setXFormsValue

public void setXFormsValue()
                    throws org.chiba.xml.xforms.exception.XFormsException,
                           java.io.IOException
sets the value of a control in the processor.

Throws:
org.chiba.xml.xforms.exception.XFormsException
java.io.IOException

setRepeatIndeces

public void setRepeatIndeces()
                      throws org.chiba.xml.xforms.exception.XFormsException,
                             java.io.IOException
sets the value of a control in the processor.

Throws:
org.chiba.xml.xforms.exception.XFormsException
java.io.IOException

fireAction

public void fireAction()
                throws org.chiba.xml.xforms.exception.XFormsException,
                       java.io.IOException
fires an action associated with a trigger.

Throws:
org.chiba.xml.xforms.exception.XFormsException
java.io.IOException

handleAction

public void handleAction()
handles submits and sets the instance data.


handleSubmit

public void handleSubmit(org.w3c.dom.Node result)

swapRepeatItems

public void swapRepeatItems()
                     throws java.lang.Exception
Swaps model nodes to implement reordering within repeats.

Throws:
java.lang.Exception


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