1. #1
    Ext User
    Join Date
    Jul 2008
    Posts
    50
    Vote Rating
    0
    drenda81 is on a distinguished road

      0  

    Default [CLOSED] Field markInvalid not make invalid the formPanel

    [CLOSED] Field markInvalid not make invalid the formPanel


    Hi all,
    when I use the method markInvalid() on a field of a form panel it don't invalid the formPanel neither itself. Infact if I execute:

    Code:
    TextField field = new TextField();
    field.setFieldLabel("Field");
    username.markInvalid("Invalid field");
    
    System.out.println("Field is valid:" +username.isValid());
    The System.out print that the field is valid. It's a normal behavior?

    Thanks

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    A field is not valid as determined by the isValid method. Typically, markInvalid is not called directly, rather by the fields themselves when validation fails. Calling markInvalid will have no effect on what is returned by isValid.

  3. #3
    Ext User
    Join Date
    Jul 2008
    Posts
    50
    Vote Rating
    0
    drenda81 is on a distinguished road

      0  

    Default


    Hi darrellmeyer,
    thanks for your replay. So which is the correct method to invalidate a field if I want to execute a particular validation only when I decide to make it? (for example only when I press the submit button)

    Thanks!

  4. #4
    Sencha User
    Join Date
    Apr 2009
    Location
    France
    Posts
    50
    Vote Rating
    0
    G.edwin is on a distinguished road

      0  

    Default


    Hi, do you find the solution to invalidate the field ?

Thread Participants: 2

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