org.apache.cocoon.forms.binding
Class EnhancedRepeaterJXPathBinding

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.forms.binding.JXPathBindingBase
          extended by org.apache.cocoon.forms.binding.RepeaterJXPathBinding
              extended by org.apache.cocoon.forms.binding.EnhancedRepeaterJXPathBinding
All Implemented Interfaces:
LogEnabled, Binding

public class EnhancedRepeaterJXPathBinding
extends RepeaterJXPathBinding


Field Summary
 
Fields inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
classes, parent
 
Constructor Summary
EnhancedRepeaterJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts, String repeaterId, String repeaterPath, String rowPath, String rowPathForInsert, JXPathBindingBase[] childBindings, JXPathBindingBase insertBinding, JXPathBindingBase[] deleteBindings, JXPathBindingBase[] identityBindings, String adapterClass)
           
 
Method Summary
 void doLoad(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Binds the unique-id of the repeated rows, and narrows the context on objectModelContext and Repeater to the repeated rows before handing over to the actual binding-children.
 void doSave(Widget frmModel, org.apache.commons.jxpath.JXPathContext jxpc)
          Uses the mapped identity of each row to detect if rows have been updated, inserted or removed.
 
Methods inherited from class org.apache.cocoon.forms.binding.RepeaterJXPathBinding
enableLogging, getDeleteRowBinding, getId, getIdentity, getIdentity, getIdentityBinding, getInsertRowBinding, getInsertRowPath, getRepeaterPath, getRowBinding, getRowPath, hasNonNullElements, toString
 
Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase
getClass, getCommonAtts, getEnclosingLibrary, getLocation, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setEnclosingLibrary, setParent
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnhancedRepeaterJXPathBinding

public EnhancedRepeaterJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
                                     String repeaterId,
                                     String repeaterPath,
                                     String rowPath,
                                     String rowPathForInsert,
                                     JXPathBindingBase[] childBindings,
                                     JXPathBindingBase insertBinding,
                                     JXPathBindingBase[] deleteBindings,
                                     JXPathBindingBase[] identityBindings,
                                     String adapterClass)
Method Detail

doLoad

public void doLoad(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
            throws BindingException
Description copied from class: RepeaterJXPathBinding
Binds the unique-id of the repeated rows, and narrows the context on objectModelContext and Repeater to the repeated rows before handing over to the actual binding-children.

Overrides:
doLoad in class RepeaterJXPathBinding
Throws:
BindingException

doSave

public void doSave(Widget frmModel,
                   org.apache.commons.jxpath.JXPathContext jxpc)
            throws BindingException
Description copied from class: RepeaterJXPathBinding
Uses the mapped identity of each row to detect if rows have been updated, inserted or removed. Depending on what happened the appropriate child-bindings are allowed to visit the narrowed contexts.

Overrides:
doSave in class RepeaterJXPathBinding
Throws:
BindingException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.