Announcement

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

    Setting default properties on IntegerItem causes TextItem to valid as an IntegerItem

    SmartClient Version: v9.0p_2013-11-05/LGPL Development Only (built 2013-11-05)

    Browser: IE9

    Setting the default properties on IntegerItems causes all TextItems to validate using IntegerValidator and display the error "Must be a whole number.".

    Code:
    public class SetIntegerItemDefaults extends DynamicForm	 {
      public SetIntegerItemDefaults() {
        MyIntItem formItem = new MyIntItem();
        IntegerItem.setDefaultProperties(formItem);
    		
        TextItem textItem = new TextItem("TextItem", "Text Item");
        textItem.setValue("Test");
        setItems(textItem);
    		
        validate();
      }
    	
      public class MyIntItem extends IntegerItem {
      }
    }
    If you display the class above, a validation error symbol will show next to the text field and hovering over it will display an integer validation error on the TextItem field.

    #2
    A fix was done recently in this area, can you try with the latest release and see if the issue still persists.

    Thanks.

    Isomorphic

    Comment


      #3
      Yep, it's fixed. Thanks!

      Comment


        #4
        This problem is back as of last night's build:

        SmartClient Version: v9.0p_2013-12-03/LGPL Development Only (built 2013-12-03)

        Last version I used was 11/28 - not sure when the problem crept back in.

        Comment


          #5
          Just a quick note to let you know this is under investigation. We'll follow up when we have more information for you.

          Comment


            #6
            Hello,
            We've fixed it - please pick up the next 4.0 build (dated Dec 8 or above) to get this fix.

            Regards
            Isomorphic Software

            Comment

            Working...
            X