Hybrid View

  1. #1
    Ext User
    Join Date
    May 2009
    Location
    Italy
    Posts
    116
    Vote Rating
    0
    robertoroberto is on a distinguished road

      0  

    Default [solved] How to force a TextField as Invalid ?

    [solved] How to force a TextField as Invalid ?


    Hi
    I need to force a TextField as Invalid but without using a validator.
    How can I do it with ExtJS 2.x (or 3.x) ?

    I try to explain why I need it.

    I'm creating a J2EE login form so the submit MUST be a standard submit (not a JSON results). So I need now to manage the Error Login Page.

    I want to do mark as invalid User Id and Password field using standard ExtJS layout.
    Of couse I can add a simple panel with a generic error message... But if I can use standard msgTarget i will be more happy

    Thanks

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Please post requests for help in the Help folder.

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Now, which version are you in fact using?

  4. #4
    Ext User
    Join Date
    May 2009
    Location
    Italy
    Posts
    116
    Vote Rating
    0
    robertoroberto is on a distinguished road

      0  

    Default


    I'm sorry If I post in the wrong forum. Next time I will put more attention.
    There is a way to move it ? I havent found it

    My final application must be run under ExtJS 3.0 (and I believe it will delivered in about 6m)
    So I'm looking for a solution bases on ExtJS 3.0

    Thanks

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,882
    Vote Rating
    101
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Take a look at the markInvalid method.

    If you wanted to force validation and auto trigger the standard validation you could also call the isValid method.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  6. #6
    Ext User
    Join Date
    May 2009
    Location
    Italy
    Posts
    116
    Vote Rating
    0
    robertoroberto is on a distinguished road

      0  

    Default


    Hi Aconran.
    It is exactly what I'm looking for!!
    Thanks!

Thread Participants: 2

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