the validated entries code from the first example does 2 things:
1) In the bindings panel, there is a validated entries binding group. Use these bindings for the initial value of the form elements to retain valid entries in the form when it it fails validation.
2) On the server behaviors panel, click the plus button and select WebAssist -> Validation -> Validation show if. This behavior is used to show an error message on the page when validation fails.