org.apache.cocoon.forms.binding
Class SimpleRepeaterJXPathBinding
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.forms.binding.JXPathBindingBase
org.apache.cocoon.forms.binding.SimpleRepeaterJXPathBinding
- All Implemented Interfaces:
- Binding
- public class SimpleRepeaterJXPathBinding
- extends JXPathBindingBase
Simple binding for repeaters: on save, first deletes the target data
before recreating it from scratch.
For a smarter binding that avoids deletion and recreation, consider
RepeaterJXPathBinding
- Version:
- $Id: SimpleRepeaterJXPathBinding.html 1304280 2012-03-23 11:18:01Z ilgrosso $
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.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
SimpleRepeaterJXPathBinding
public SimpleRepeaterJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String repeaterId,
String repeaterPath,
String rowPath,
boolean clearOnLoad,
boolean deleteIfEmpty,
JXPathBindingBase rowBinding)
getId
public String getId()
- Description copied from class:
JXPathBindingBase
- Returns binding definition id.
- Specified by:
getId
in interface Binding
- Overrides:
getId
in class JXPathBindingBase
getRepeaterPath
public String getRepeaterPath()
getRowPath
public String getRowPath()
getClearOnLoad
public boolean getClearOnLoad()
getDeleteIfEmpty
public boolean getDeleteIfEmpty()
getChildBindings
public JXPathBindingBase[] getChildBindings()
doLoad
public void doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jctx)
throws BindingException
- Description copied from class:
JXPathBindingBase
- Performs the actual load binding regardless of the configured value of the "direction" attribute.
Abstract method that subclasses need to implement for specific activity.
- Specified by:
doLoad
in class JXPathBindingBase
- Throws:
BindingException
doSave
public void doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jctx)
throws BindingException
- Description copied from class:
JXPathBindingBase
- Performs the actual save binding regardless of the configured value of the "direction" attribute.
Abstract method that subclasses need to implement for specific activity.
- Specified by:
doSave
in class JXPathBindingBase
- Throws:
BindingException
toString
public String toString()
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.