Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug: No negative values when SimpleType "localeFloat" is used

    Hello,

    it is currently not possible for the user to enter negative values when the simpleType "localeFloat" is used. item.getValueAsFloat() always removes the "-" in front of the number.

    Entered Value => 400 => item.getValueAsFloat() => 400
    Entered Value => -400 => item.getValueAsFloat() => 400

    Used SmartGWT 4.1p Latest

    I used the following code:
    Code:
    FloatItem item = new FloatItem( "amount", "Amount" );
            item.setType( "localeFloat" );
            item.setDecimalPrecision( 2 );
            item.setDecimalPad( 2 );
            item.setWidth( "*" );
            item.setDefaultValue( new Float(0) );
            item.addClickHandler( new ClickHandler()
            {
    
                @Override
                public void onClick( ClickEvent event )
                {
                    item.selectValue();
                }
            } );
    Thanks
    Andy
    Last edited by andyx1975; 28 Aug 2014, 02:43.

    #2
    Hey isomorphic,

    can you reproduce this bug? Do You need more infos?

    Thanks
    Andy

    Comment


      #3
      Hello,
      We've fixed this bug - please pick up the next nightly or 4.1 build (dated Sep 3 or later) to get this fix.

      Regards
      Isomorphic Software

      Comment


        #4
        As alway... thank you very much!!! I will do this!!!

        Comment


          #5
          Hey...this bug appears again in the latest smartGWT 5p.

          Thanks
          Andy

          Comment


            #6
            This bug is fixed - please pick up the next 5p build (dated Sep 13 or later) to get this fix.

            Comment


              #7
              Thank you very much!!!

              Comment

              Working...
              X