Element html.form.ViewEditForm

html.form.BaseForm
  |
  +-- html.form.ViewEditForm
Substitution Groups:
html.IView

This component declares a form that has two display modes: view and edit.
In view mode, the form shows data (read only).
In edit mode, the form allows to change values and submit changes.
Displayed buttons depend on the mode:

The Edit button (if enabled by the Editable condition), switches the form to the edit mode, and the Cancel button (in edition mode) rollbacks the form to the view mode.


Attributes
mandatory   String ID The form ID. Must be unique in the page
optional   String CssClass The CSS class to apply. Default: 'osuit-Form'.
optional   boolean ShowResetButton Determines whether the reset button is displayed (in edition mode only). Default: yes.

Named Children Elements
1 - unbounded   html.form.IFormItem[] Items Form items (fields, sections, ...).
optional   binding.Expression SubmitButtonLabel SubmitButtonLabel details (TODO).
optional   binding.Expression Editable Determines whether this form is editable. Default: yes.
0 - unbounded   html.menu.IMenuItem[] AddButtons Additional buttons to display (in view mode only).
0 - unbounded   binding.Do[] OnReload Action to trigger when the reload button is clicked (in view mode only).
If not set, the reload button is not displayed.
optional   binding.Expression OnValidate Callback to trigger right before invoking the submit action.
The callbacked method may throw a org.ow2.opensuit.core.validation.ValidationErrors with all validation error messages.
mandatory   action.IAction OnSubmit Action to trigger when the submit button is pressed.
1 - unbounded   binding.Do[] OnResetChange Action to trigger when the form needs to reset changes (when the reset button is clicked or when the user leaves the edition mode after having sumbitted but not confirmed the submission).