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.
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.
public void doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
throws BindingException
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.
public void doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jxpc)
throws BindingException
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.