1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    14
    Vote Rating
    0
    TouchOfDestiny is on a distinguished road

      0  

    Default A question about validation (in a MVC architecture)

    A question about validation (in a MVC architecture)


    Hi!


    Sorry for posting this two times, but I'm very interested in your opinions (I'm a newbie).

    I'm developing a new site and I would like to use ExtJS 4 in a MVC architecture (described in the guides of this site). This site has a lot of dialogs (basically windows elements with forms) and controllers.

    I would like to ask you where you would insert form validation of all those dialogs?

    In the controllers? In the windows (views)? Consider that I call those dialogs from different controllers.

    Thank you very much in advance for any advice!
    David

  2. #2
    Sencha User
    Join Date
    May 2010
    Location
    Kiev, Ukraine
    Posts
    134
    Vote Rating
    6
    khmurach is on a distinguished road

      0  

    Default


    Simple rules:

    Code:
    allowBlank: false,
    vtype: 'email'
    i usually put into my forms.

    and verify it in my controller:
    Code:
    if (form.getForm().isValid()) {
        store.add(values);
        win.close();
    }
    Demo here http://ext4all.com/post/extjs-4-mvc-...n-architecture
    Vitaliy Khmurach
    Web Developer
    http://ext4all.com

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    14
    Vote Rating
    0
    TouchOfDestiny is on a distinguished road

      0  

    Default


    Thanks for your reply!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar