1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default [FIXED] ComboBox allowBlank : wrong validation

    [FIXED] ComboBox allowBlank : wrong validation


    On a ComboBox, I use setAllowBlank(false) to not permit blank values. But the first time I select a value, I get the error message. If I select another value, the error message disappears.
    I work on Windows XP, and the bug reproduces in hosted and web mode with FF3 or IE6.
    Code:
      public void onModuleLoad() {
         Viewport viewport = new Viewport();
                
         final FormPanel panel = new FormPanel();
         panel.setHeading("Form panel");
         panel.setWidth(400);
        
         final ComboBox combo = new ComboBox();
         combo.setEmptyText("Select a value");
         combo.setAllowBlank(false);
         combo.setFieldLabel("File");
         final ListStore store = new ListStore();
         BaseModel model = new BaseModel();
         model.set("text", "N/A");
         store.add(model);
         combo.setStore(store);
         panel.add(combo);
         TextField textField = new TextField();
         textField.setFieldLabel("Text field");
         panel.add(textField);
                
         viewport.add(panel);
        
         RootPanel.get().add(viewport);
      }

  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


    Fixed in SVN.

Thread Participants: 1