Patent ID: 7028288

Claim:
A method for automating enforcement of a data validation rule associated with an input field by a Model View Controller software application, comprising: applying an input constraint embodying the data validation rule to a Model to generate an applied constraint, wherein the applied constraint comprises the data validation rule and is externally visible to a View, a Controller, and a View-Controller Generator; generating the View and the Controller by the View-Controller Generator; discovering the applied constraint via examination of the Model by the View-Controller Generator to generate a discovered constraint; generating an input field constraint mechanism in a markup language by the View-Controller Generator using the discovered constraint; and constraining the input field using the input field constraint mechanism to generate a constrained input field, wherein the View performs at least one selected from the group consisting of: generating the constrained input field prior to user interaction with the constrained input field, and modifying the constrained input field prior to user interaction with the constrained input field.