public class NestedCayenneForm extends org.apache.click.extras.cayenne.CayenneForm
Modifier and Type | Field and Description |
---|---|
protected org.apache.cayenne.access.DataContext |
nestedDataContext
A transient reference to a nested DataContext.
|
classField, dataObject, FO_CLASS, FO_ID, metaDataApplied, oidField
actionURL, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, buttonAlign, buttonList, buttonStyle, columns, defaultFieldSize, disabled, enctype, error, errorsAlign, errorsPosition, errorsStyle, fieldList, fieldStyle, fieldWidths, FOCUS_JAVASCRIPT, FORM_NAME, formSubmission, javaScriptValidation, labelAlign, labelsPosition, labelStyle, method, MULTIPART_FORM_DATA, POSITION_BOTTOM, POSITION_LEFT, POSITION_MIDDLE, POSITION_TOP, readonly, SUBMIT_CHECK, validate
controlMap, controls
actionListener, attributes, behaviors, headElements, listener, listenerMethod, messages, name, parent, styles
CONTROL_MESSAGES
Constructor and Description |
---|
NestedCayenneForm()
Default constructor.
|
NestedCayenneForm(Class<? extends org.apache.cayenne.DataObject> dataObjectClass)
Construct a form for the specified DataObject class.
|
NestedCayenneForm(String name,
Class<? extends org.apache.cayenne.DataObject> dataObjectClass)
Construct a form for the specified name and DataObject class.
|
Modifier and Type | Method and Description |
---|---|
org.apache.cayenne.access.DataContext |
getDataContext()
Return the DataContext for this Form.
|
void |
onDestroy()
Override onDestroy not to nullify the dataObject instance each request.
|
applyMetaData, clearValues, getDataObject, getDataObject, getDataObjectClass, getDataObjectPk, getState, isPersistent, onProcess, render, saveChanges, setDataObject, setDataObjectClass
add, add, add, add, clearErrors, copyFrom, copyFrom, copyTo, copyTo, endTag, getActionURL, getButtonAlign, getButtonList, getButtonStyle, getColumns, getControlSizeEst, getDefaultFieldSize, getEnctype, getError, getErrorFields, getErrorsAlign, getErrorsPosition, getErrorsStyle, getField, getFieldList, getFields, getFieldStyle, getFieldValue, getFieldWidths, getFormSizeEst, getHeadElements, getJavaScriptValidation, getLabelAlign, getLabelsPosition, getLabelStyle, getMethod, getTag, getValidate, hasPostError, insert, isDisabled, isFormSubmission, isJavaScriptValidation, isReadonly, isValid, onSubmitCheck, onSubmitCheck, onSubmitCheck, performSubmitCheck, remove, removeField, removeFields, removeState, renderButtons, renderControls, renderErrors, renderFields, renderFocusJavaScript, renderHeader, renderTagEnd, renderValidationJavaScript, replace, restoreState, saveState, setActionURL, setButtonAlign, setButtonStyle, setColumns, setDefaultFieldSize, setDisabled, setEnctype, setError, setErrorsAlign, setErrorsPosition, setErrorsStyle, setFieldStyle, setJavaScriptValidation, setLabelAlign, setLabelsPosition, setLabelStyle, setListener, setMethod, setName, setReadonly, setState, setValidate, startTag, validate, validateFileUpload
contains, getControl, getControlMap, getControls, hasControls, onInit, onRender, renderChildren, renderContent, renderTagEnd, toString
addBehavior, addStyleClass, appendAttributes, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getHtmlImports, getId, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasBehaviors, hasStyles, isAjaxTarget, onDeploy, removeBehavior, removeStyleClass, renderTagBegin, setActionListener, setAttribute, setId, setParent, setStyle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBehaviors, getContext, getId, getMessages, getName, getParent, hasBehaviors, isAjaxTarget, onDeploy, setParent
protected transient org.apache.cayenne.access.DataContext nestedDataContext
public NestedCayenneForm(String name, Class<? extends org.apache.cayenne.DataObject> dataObjectClass)
name
- the form namedataObjectClass
- the DataObject classpublic NestedCayenneForm(Class<? extends org.apache.cayenne.DataObject> dataObjectClass)
dataObjectClass
- the DataObject classpublic NestedCayenneForm()
public org.apache.cayenne.access.DataContext getDataContext()
nestedDataContext
instance if set
#3. return a nested DataContext of the thread local DataContextgetDataContext
in class org.apache.click.extras.cayenne.CayenneForm
public void onDestroy()
onDestroy
in interface Control
onDestroy
in class org.apache.click.extras.cayenne.CayenneForm