Results 1 to 2 of 2

Thread: (beta2) NumberField allowDecimals="false" doesn't work

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    Lima, Peru
    Posts
    43
    Answers
    5
    Vote Rating
    6
      0  

    Default Answered: (beta2) NumberField allowDecimals="false" doesn't work

    I have a NumberField for Integer numbers but I can type decimals then I put allowDemimals="false" and get the following error:
    Code:
    16:24:44.476 [ERROR] [examplerf] Unable to load module entry point class com.examplerf.client.ExampleRF (see associated exception for details)
    
    java.lang.IndexOutOfBoundsException: Index: 46, Size: 11
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.remove(Unknown Source)
        at com.sencha.gxt.cell.core.client.form.NumberInputCell.setAllowDecimals(NumberInputCell.java:72)
        at com.sencha.gxt.widget.core.client.form.NumberField.setAllowDecimals(NumberField.java:58)
        at com.examplerf.client.ColaboradorEditor_ColaboradorUiBinderImpl.createAndBindUi(ColaboradorEditor_ColaboradorUiBinderImpl.java:45)
        at com.examplerf.client.ColaboradorEditor_ColaboradorUiBinderImpl.createAndBindUi(ColaboradorEditor_ColaboradorUiBinderImpl.java:1)
        at com.examplerf.client.ColaboradorEditor.<init>(ColaboradorEditor.java:53)
        at com.examplerf.client.ExampleRF.onModuleLoad(ExampleRF.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
        at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:200)
        at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:525)
        at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
        at java.lang.Thread.run(Unknown Source)
    Snippet of code
    Code:
    public class ColaboradorEditor implements Editor<ColaboradorProxy>{
       @UiField(provided = true)
        NumberField<Integer> edad;
    
        Window panel;
        
        public ColaboradorEditor() {
            panel = new Window();
            panel.setResizable(false);    
            
            edad = new NumberField<Integer>(new NumberPropertyEditor.IntegerPropertyEditor());
            panel.setWidget(uiBinder.createAndBindUi(this));
            form.getHeader().setVisible(false);
       }
    }
    Snippet of UIBinder
    Code:
                  <form:FieldLabel text="Age">
                    <form:widget>
                      <form:NumberField ui:field="edad" allowDecimals="false" />
                    </form:widget>
                  </form:FieldLabel>
    any suggestion?

  2. This is fixed in beta3. What I don't know is if the allowNegative was also fixed - I didn't see it in the release notes - same error, effectively.

  3. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    413
    Answers
    20
    Vote Rating
    21
      0  

    Default

    This is fixed in beta3. What I don't know is if the allowNegative was also fixed - I didn't see it in the release notes - same error, effectively.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •