Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext GWT Premium Member
    Join Date
    Dec 2011
    Location
    Earth
    Posts
    243
    Vote Rating
    1
    nbuesing is on a distinguished road

      0  

    Default Field and setAutoValidate()

    Field and setAutoValidate()


    I am looking at your "Forms Example" from your Explorer Demo and have compiled it and running it locally.

    1)

    Now, I do the following for the 'age' field

    age.addValidator(new MaxNumberValidator<Integer>(99));
    age.setAutoValidate(true);


    I am still able to enter values > 99 and I get no validation message until I leave the field.

    Is this an error, or am I not understanding the behavior of setAutoValidate().

    2)

    I modified SpinnerField (in the same Forms Example) to have 'setAutoValidate(true)', it doesn't prevent me from using the spinner to move the value above or below the expected value. What should be expected?

    SpinnerField<Double> spinnerField = new SpinnerField<Double>(new DoublePropertyEditor());
    spinnerField.setIncrement(.1d);
    spinnerField.getPropertyEditor().setFormat(NumberFormat.getFormat("00.0"));
    spinnerField.setAutoValidate(true);

    FieldLabel spinLabel = new FieldLabel(spinnerField, "Duration(s)");
    spinnerField.setMinValue(-10d);
    spinnerField.setMaxValue(10d);

    What I was hoping was the following

    a. the spinner would not spin lower than the min or higher than the max
    b. if you enter a value < the min, it would be replaced with the min, if you enter a value > max, it would be replaced with the max.

    Now, I can see other behaviors for "b", but I would expect autoValidate to prevent that.

    Am I understanding autoValidate for spinners, or am I missing something here as well?

    Thanks

  2. #2
    Sencha Premium Member
    Join Date
    Dec 2007
    Posts
    7
    Vote Rating
    0
    schorse is on a distinguished road

      0  

    Default


    Hi,

    the Validator of a Field will be called with the old value until you leave the Field.
    See my post Validation bug in TextField.

    I think this is a bug. At every keyup-Event the Validator will be called with the old value from the cell.

  3. #3
    Ext GWT Premium Member
    Join Date
    Jan 2012
    Location
    Linz, Austria
    Posts
    23
    Vote Rating
    1
    FEAT is on a distinguished road

      0  

    Default TextField Validator called with initial value

    TextField Validator called with initial value


    Hi schorse,

    i can only confirm that wrong behavior. Have just stumbled upon it myself because i need to validate user text input in a grid (I am using a text field).

    Always, the initial value is validated, NOT the value changed by the user.

    Best Regards,
    Peter

  4. #4
    Ext GWT Premium Member
    Join Date
    Jan 2012
    Location
    Linz, Austria
    Posts
    23
    Vote Rating
    1
    FEAT is on a distinguished road

      0  

    Default


    Issue still not fixed in beta 3.

  5. #5
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    Thanks for the update. I'll file a bug for the team to take a look at this and will update this thread with any developments.

  6. #6
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    A fix for this issue is available in Beta4, released today. It can be seen working at http://sencha.com/examples-dev/#Exam...e:basicbinding on the Symbol field - enter a lower case letter to trigger it.

    As an implementation note, if the entered value cannot be parsed as the field's data, the validaters will have to work with a null instance. In many cases, this will mean no validation occurs. Validation errors will show up if the value still cannot be parsed after the user blurs the field.

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