| org.apache.cocoon.forms.binding.JXPathBindingBase org.apache.cocoon.forms.binding.RepeaterJXPathBinding
All known Subclasses: org.apache.cocoon.forms.binding.EnhancedRepeaterJXPathBinding,
RepeaterJXPathBinding | public class RepeaterJXPathBinding extends JXPathBindingBase (Code) | | RepeaterJXPathBinding provides an implementation of a
Binding that allows for bidirectional binding of a repeater-widget to/from
repeating structures in the back-end object model.
version: $Id: RepeaterJXPathBinding.java 601839 2007-12-06 20:05:24Z antonio $ |
doLoad | public void doLoad(Widget frmModel, JXPathContext jxpc) throws BindingException(Code) | | 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.
|
doSave | public void doSave(Widget frmModel, JXPathContext jxpc) throws BindingException(Code) | | 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.
|
enableLogging | public void enableLogging(Logger logger)(Code) | | |
getIdentity | protected List getIdentity(JXPathContext rowContext)(Code) | | Get the identity of the given row context. That's infact a list of all
the values of the fields in the bean or XML that constitute the identity.
Parameters: rowContext - List the identity of the row context |
getIdentity | protected List getIdentity(Repeater.RepeaterRow row)(Code) | | Get the identity of the given row. That's in fact a list of all the values
of the fields in the form model that constitute the identity.
Parameters: row - List the identity of the row |
hasNonNullElements | protected boolean hasNonNullElements(List list)(Code) | | Tests if any of the elements in a List is not null.
Parameters: list - |
|
|