In Web Dynpro, how is it possible that an action event handler is processed despite the fact that the user has entered invalid data?
The answer lies in the use of a non-validating action for this scenario. The distinction between validating and non-validating actions is simple.
A validating actionis only executed if all data entered by the end user is valid. If a single validation error occurs, the action event handler is blocked and the relevant error message(s) are displayed.
A non-validating actionis always executed, regardless of whether or not the end user entered invalid data. The action event handler must be prepared to deal with invalid data. It is highly recommended to re-initialize invalid context attributes as soon as they are no longer required. Otherwise, any subsequent validating actions could be prevented by old validation errors.
The above example can now be corrected. First, declare the action as a non-validating action. To do so, open the action’s properties and select the check box Without validation.
If you run the application again, the result almost represents the expected behaviour. Invalid data in the input field married since does not block the action event handler execution and thus the input field can be disabled.
Re-Initialization of Invalid Context Attributes