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
    7
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi