1. #1
    Sencha User
    Join Date
    Jan 2011
    Location
    Lima, Peru
    Posts
    43
    Answers
    5
    Vote Rating
    5
    poseidonjm is on a distinguished road

      0  

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

    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
    411
    Answers
    20
    Vote Rating
    21
    icfantv will become famous soon enough icfantv will become famous soon enough

      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.

Thread Participants: 1

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