|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.forms.binding.JXPathBindingBase
org.apache.cocoon.forms.binding.TempRepeaterJXPathBinding
Experimental simple binding for repeaters: on save, first deletes the target data before recreating it from scratch. Based on code from SimpleRepeater.
For a smarter binding that avoids deletion and recreation, consider
RepeaterJXPathBinding
| Field Summary |
| Fields inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase |
classes, parent |
| Constructor Summary | |
TempRepeaterJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String repeaterId,
String repeaterPath,
String rowPath,
String rowPathInsert,
boolean virtualRows,
boolean clearOnLoad,
boolean deleteIfEmpty,
JXPathBindingBase rowBinding,
JXPathBindingBase insertBinding)
|
|
| Method Summary | |
void |
doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jctx)
Performs the actual load binding regardless of the configured value of the "direction" attribute. |
void |
doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jctx)
Performs the actual save binding regardless of the configured value of the "direction" attribute. |
void |
enableLogging(Logger logger)
Receives the Avalon logger to use. |
JXPathBindingBase[] |
getChildBindings()
|
boolean |
getClearOnLoad()
|
boolean |
getDeleteIfEmpty()
|
String |
getId()
Returns binding definition id. |
JXPathBindingBase[] |
getInsertChildBindings()
|
String |
getRepeaterPath()
|
String |
getRowPath()
|
String |
getRowPathInsert()
|
boolean |
getVirtualRows()
|
String |
toString()
|
| Methods inherited from class org.apache.cocoon.forms.binding.JXPathBindingBase |
getClass, getCommonAtts, getLocalLibrary, getLocation, getLogger, isValid, loadFormFromModel, loadFormFromModel, saveFormToModel, saveFormToModel, selectWidget, setLocalLibary, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TempRepeaterJXPathBinding(JXPathBindingBuilderBase.CommonAttributes commonAtts,
String repeaterId,
String repeaterPath,
String rowPath,
String rowPathInsert,
boolean virtualRows,
boolean clearOnLoad,
boolean deleteIfEmpty,
JXPathBindingBase rowBinding,
JXPathBindingBase insertBinding)
| Method Detail |
public String getId()
JXPathBindingBase
getId in interface BindinggetId in class JXPathBindingBasepublic String getRepeaterPath()
public String getRowPath()
public String getRowPathInsert()
public boolean getVirtualRows()
public boolean getClearOnLoad()
public boolean getDeleteIfEmpty()
public JXPathBindingBase[] getChildBindings()
public JXPathBindingBase[] getInsertChildBindings()
public void doLoad(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jctx)
throws BindingException
JXPathBindingBase
doLoad in class JXPathBindingBaseBindingException
public void doSave(Widget frmModel,
org.apache.commons.jxpath.JXPathContext jctx)
throws BindingException
JXPathBindingBase
doSave in class JXPathBindingBaseBindingExceptionpublic String toString()
public void enableLogging(Logger logger)
JXPathBindingBasesuper.enableLogging(logger)
in possible overriding versions.
enableLogging in interface LogEnabledenableLogging in class JXPathBindingBase
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||