Display all form errors messages

Anyone knows how to display all form errors messages?
I only can display one error message when i click on the submit button.

thanks.

Hi,

Validate each field in the form and collect error messages: Something like:

for (Object propertyId : form.getItemPropertyIds()) {
	try {
		form.getField(propertyId).validate();
	} catch (InvalidValueException e) {
		// Collect error messages here
	}
}

The use a Label for example to show error messages.

-Henri