Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2010
    Posts
    2
    Vote Rating
    0
    chonghaulim is on a distinguished road

      0  

    Default [FNR] NumberField not working in Firefox 3.6.11

    [FNR] NumberField not working in Firefox 3.6.11


    I use the following code in my app and it is working in anything but Firefox 3.6.11. I couldn't type anything including numbers in the field.

    NumberField amount=
    new NumberField();
    field.setName("amount");
    field.setFieldLabel("Amount");
    field.setFormat(NumberFormat.getDecimalFormat()); // The same result for any other format
    field.setAllowDecimals(true);

    field.setAllowBlank(false);

    Did I do something wrong?


  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You are probably using GWT 2.1 and this is nto yet supported (due to braking changes). We will release an updated build soon. Please note that this is a duplicate report.

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I commited a first fix for this to SVN at revision 2317

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    9
    Vote Rating
    0
    nastra is on a distinguished road

      0  

    Default


    Can I see somewhere the changes that were done by your fix? As currently I can only see that something was done in a particular file, but not what exactly. This would be really helpful.

  5. #5
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
    The_Jackal is on a distinguished road

      0  

    Default


    Note that this was fixed in 2.2.2 (which is pretty old now).

    Here are the changes anyway:

    - onKeyDown removed
    - onKeyPress changed
    Code:
      @Override
      protected void onKeyPress(FieldEvent fe) {
        super.onKeyPress(fe);
    
        if (fe.isSpecialKey(getKeyCode(fe.getEvent()))) {
          return;
        }
    
        char key = getChar(fe.getEvent());
    
        if (!allowed.contains(key)) {
          fe.stopEvent();
        }
      }
    The following methods / fields added for 2.1 support:

    Code:
      private int lastKeyCode;
    
      private native char getChar(NativeEvent e) /*-{
        return e.which || e.charCode || e.keyCode || 0;
      }-*/;
    
      private native int getKeyCode(NativeEvent e) /*-{
        return e.keyCode || 0;
      }-*/;

  6. #6
    Sencha User
    Join Date
    Oct 2011
    Posts
    9
    Vote Rating
    0
    nastra is on a distinguished road

      0  

    Default


    This is very helpful, thanks for that

Similar Threads

  1. [FNR] Typo error in NumberField
    By cimballi in forum Ext GWT: Bugs (2.x)
    Replies: 1
    Last Post: 28 Sep 2010, 6:06 AM
  2. Problem with FireFox and NumberField
    By Crash Override in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 19 Sep 2010, 12:51 PM
  3. NumberField - new method maxNumberCharactersAfterDecimalSeparator - [FNR]
    By fother in forum Ext GWT: User Extensions and Plugins (1.x)
    Replies: 4
    Last Post: 2 Sep 2010, 6:49 AM
  4. [FNR] Radio layout problem in Firefox
    By zdarsky in forum Ext GWT: Bugs (2.x)
    Replies: 2
    Last Post: 8 Mar 2010, 1:59 AM
  5. Firefox 2.0 allows decimals in numberfield even though false
    By thejoker101 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 20 Mar 2007, 8:55 AM

Thread Participants: 3