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.".
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.
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 { } }
Comment