modnaut / primary

0 stars 0 forks source link

Standard Screen Validation Practices - ALL #14

Open modnaut opened 11 years ago

modnaut commented 11 years ago

I was looking at HelloWorldCtrl, and see there is a little bit of validation for the fields on screen when clicking to save a new user, etc. We will want to add to the list to come up with a standard practice for validation, ie; should it be in its own method, will we have some common utilities that can handle the basic validation so it doesn't have to be done over and over again.

DANNY & BEN --- Start thinking about it and let me know your thoughts.

modnaut commented 11 years ago

Per Danny -- I agree. If we set up the XML for a screen with proper validation (allowBlank, maxLength, etc), we can refuse the submit the form to the server if there is an invalid field. We'll still need a way to handle server-side validation in a standard way for things that cannot be validated browser-side.