Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2008
    Posts
    5
    Vote Rating
    0
    ivotte is on a distinguished road

      0  

    Default Beta3: Validators not working

    Beta3: Validators not working


    Hi,

    if I add a validator to a field, it often (but not always) validates an old value. I did not use the "autoValidate" function, but simply relied on "validateOnBlur". Thus, as soon as I leave the field and go to the next, the validator is executed an operated on an old value.

    This issue seems to be similar to the following post:

    http://www.sencha.com/forum/showthre...ight=validator

    I observed this behaviour with the following example program:

    Code:
     public void onModuleLoad() {
      VerticalLayoutContainer c = new VerticalLayoutContainer();
      
      // create field with validator
      NumberField<Double> numberField = new NumberField<Double>( new NumberPropertyEditor.DoublePropertyEditor() );
      numberField.getValidators().add( new AbstractValidator<Double>() {
       public List<EditorError> validate(Editor<Double> editor, Double value) {
        return createError( editor, "I reject all values! Your value is " + value, value );
       }
      } );
      c.add( new FieldLabel(numberField, "NumberField"), new VerticalLayoutData(1,-1) );
      
      // create another field
      TextField textField = new TextField();
      c.add( new FieldLabel(textField, "TextField"), new VerticalLayoutData(1,-1) );
      RootPanel.get().add(c);
     }

  2. #2
    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


    I'm not noticing this on Beta 4. Each time I hover the cursor over the error icon (when I am no longer focussed on the field), I see the correct value in the tooltip.

    Try your test case with Beta 4 and see if that resolves the issue. If you still notice problems, post a reply with your browser, OS, and whether you noticed this problem in development mode, production mode, or both.

Thread Participants: 1

Tags for this Thread

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