1. #1
    Sencha User
    Join Date
    Jun 2010
    Posts
    18
    Vote Rating
    0
    ksystems is on a distinguished road

      0  

    Default Model Validation

    Model Validation


    With the introduction of a "Model" class (to replace record) I was wondering a few things.
    1. Is it possible to bind a form to a model - i.e. have it update the model as the form changes?
    2. Why is validation NOT performed on the model (all apart from type and allowBlank)? It seems weird to extract validation (based on implementations on most other client and server frameworks) from the model and tightly couple the UI components to the model?

    I hope these don't come across as criticisms :-P.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    9
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    They definitely don't come across as criticisms as they are valid arguments. Even better yet, both of the things you mentioned will be implemented exactly the way you suggested. It's just that we havent gotten around to doing it, and we want to make sure we do it right.

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Posts
    18
    Vote Rating
    0
    ksystems is on a distinguished road

      0  

    Default


    Quote Originally Posted by TommyMaintz View Post
    They definitely don't come across as criticisms as they are valid arguments. Even better yet, both of the things you mentioned will be implemented exactly the way you suggested. It's just that we havent gotten around to doing it, and we want to make sure we do it right.
    Good to hear. Thanks for the response.

    James

  4. #4
    Sencha - Community Support Team
    Join Date
    Jun 2010
    Posts
    220
    Vote Rating
    0
    meyerovb is on a distinguished road

      0  

    Default


    When I go to the api and search for allowblank it pulls up properties for all the form fields, but when I click on them the property doesn't actually show on the component's documentation page. Is there an example that demonstrates form validation in sencha?

Similar Threads

  1. Ext.ux.MvcFormValidator - MVC 2 Client Side Model Validation with ExtJS
    By tdupont in forum Ext 3.x: User Extensions and Plugins
    Replies: 1
    Last Post: 1 Mar 2011, 9:22 AM
  2. Replies: 2
    Last Post: 17 Jun 2010, 6:53 AM
  3. get model of SimpleComboBox ?
    By Nico33 in forum Ext GWT: Discussion
    Replies: 5
    Last Post: 3 Feb 2010, 12:32 PM
  4. TextField Validation - Validation Fired as soon as user clicks into Field - bug?
    By jfisher in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 29 Sep 2008, 9:25 AM

Thread Participants: 2