What Happens When You Create a Form
Creating a Basic Databound Page 3-7
2.
Drag the collection onto the page, and from the context menu choose the type of form that will be used to display or collect data for the object. For a form, you are
given the following choices:
– ADF Form
: Launches the Edit Form Fields dialog that allows you to select individual attributes instead of having JDeveloper create a field for every
attribute by default. It also allows you to select the label and UI component used for each attribute. By default, ADF inputText components are used for
most attributes. Each inputText component has the label attribute populated.
Attributes that are dates use the InputDate component. Additionally, if a control hint has been created for an attribute, or if the attribute has been
configured to be a list, then the component set by the hint is used instead. InputText
components contain a validator tag that allows you to set up validation for the attribute, and if the attribute is a number or a date, a
converter is also included.
– ADF Read-Only Form
: Same as the ADF Form, but read-only outputText components are used. Since the form is meant to display data, no validator
tags are added converters are included. Attributes of type Date use the outputText
component when in a read-only form. All components are placed inside panelLabelAndMessage components, which have the label
attribute populated. The panelLabelAndMessage components are placed inside a panelFormLayout component.
– ADF Dynamic Form
: Creates a form whose bindings are determined at runtime. For more information, see
Section 3.8, Using a Dynamic Form to Determine Data to Display at Runtime.
3.
In the Edit Form Fields dialog, configure your form. You can elect to include navigational controls that allow users to navigate through
all the data objects in the collection. For more information, see Section 3.4,
Incorporating Range Navigation into Forms. You can also include a Submit
button used to submit the form. This button submits the HTML form and applies the data in the form to the bindings as part of the JSFADF page lifecycle. For
additional help in using the dialog, click Help. All UI components are placed inside a panelFormLayout component.
4.
If you are building a form that allows users to update data, you now need to drag and drop a method that will perform the update. For more information, see
Section 3.6, Creating a Form to Edit an Existing Record.