Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix links on component reference

...

The core of Tapestry's form support is the Form component. The Form component encloses (wraps around) all the other field components such as TextField, TextArea, Checkbox, etc.

The Form component generates a number of component events that you may provide event handler methods for.

...

Because of the the fact that a form submission is two requests (the submission itself, then a re-render of the page), it is necessary to make the value stored in the _userName field persist between the two requests. This would be necessary for the _password field as well, except that the PasswordField component never renders a value.

...

The Tapestry Form component is responsible for creating the necessary URL for the form submission (this is Tapestry's responsibility, not yours).

The Errors component must be placed inside a Form, it outputs all of the errors for all the fields within the Form as a single list. It uses some simple styling to make the result more presentable.

Each field component, such as the TextField, is paired with a Label component. The Label will render out a <label> element connected to the field. This is very important for useability, especially for users with visual disabilities. It also means you can click on the label text to move the cursor to the corresponding field.

...