To create a profile form with the Insert Form wizard:
Create a document from the Page (JSP) template.
Open the document and place the insertion point within the body,
From the Insert menu, select Insert Form.
In the Insert Form Wizard, click ...
In the Select Form Handler Component dialog box, click the By Path radio button. Navigate to
/atg/userprofiling
, and selectProfileFormHandler
. Click OK.In the Insert Form Wizard, click Next.
The Configure Input Fields dialog appears, displaying all of the available profile properties.
For each profile property to include in the profile form, specify the following:
Check
Include
to include the property.In the Input Field Format column, select an input field format from the choices provided. (When you click on the Input Field Format cell for the property, a drop-down list of field formats appears.)
In the Default Value column, select whether the current value of the property should appear in the field when the user accesses the page, or that the field should be empty. (In most cases, you should select the current value of the property as the default. If the default is empty, and the user does not fill in the field, then the property is set to null when the user submits the form. Also, note that if the
extractDefaultValuesFromProfile
property of the Profile Form Handler is false, all fields will be empty in the form, regardless of the defaults you select.)Check
Req'd
if the property is required to have a value. (If a user submits a form without completing a required field, an error results.)
Click Next. The Configure Submit Buttons and URLs dialog box appears.
In the lower part of the dialog box, enter text in the Button Text column for each submit operation you want to include on your page. (The text you enter appears on the button that invokes the operation.
To specify pages where you wish to redirect the after the operation succeeds or fails, click … and select the Web application and file that serves as the success or failure destination. (The
cancel
operation cannot have an Failure URL associated with it, so that value cannot be specified.)Click Finish.
The complete form appears in the Document Editor. Note that the profile property input fields appear on the page in alphabetical order, which might not be the order you desire. Edit the form in the Document Editor until the fields appear in the desired order.