We are using smartgwt-pro 5.0-p20141206.
Our browser is Firefox 24.0.
I have a DynamicForm where I declare an IntegerItem :
- I write "Coucou" in my field and save my form :
The red circle icon with '!' is displayed, form is not saved, tooltip displayed "Must be a whole number"
- I write "0" in my field and save my form :
The red circle icon with '!' is displayed, form is not saved, tooltip displayed "Must be at least 1"
- I write "5001" in my field and save my form :
The red circle icon with '!' is displayed, form is not saved, tooltip displayed "Must be no more than 5000"
I would like this behaviour with a SpinnerItem and I can't get it.
I've been trying to declare a SpinnerItem replacing this IntegerItem (in order to get up/down arrows) :
I have been playing with several methods :
width.setValidateOnChange
width.setValidateOnExit
width.setRejectInvalidValueOnChange
width.setStopOnError
width.setValidators
Anytime I write an incorrect input ("coucou", "0", "5001"), when I save my form or if I click in another field, the SpinnerItem just erase the wrong input or go back to previous correct input.
It seems there is no way for a SpinnerItem to keep the incorrect input and display red circle icon with '!'.
Am I missing something Isomorphic ?
Thanks by advance.
Our browser is Firefox 24.0.
I have a DynamicForm where I declare an IntegerItem :
Code:
IntegerRangeValidator validator = new IntegerRangeValidator();
validator.setMin(1);
validator.setMax(5000);
IntegerItem width = new IntegerItem("width", "width");
width.setValidators(validator);The red circle icon with '!' is displayed, form is not saved, tooltip displayed "Must be a whole number"
- I write "0" in my field and save my form :
The red circle icon with '!' is displayed, form is not saved, tooltip displayed "Must be at least 1"
- I write "5001" in my field and save my form :
The red circle icon with '!' is displayed, form is not saved, tooltip displayed "Must be no more than 5000"
I would like this behaviour with a SpinnerItem and I can't get it.
I've been trying to declare a SpinnerItem replacing this IntegerItem (in order to get up/down arrows) :
Code:
SpinnerItem width = new SpinnerItem("width", "width");
width.setMin(1);
width.setMax(3840);width.setValidateOnChange
width.setValidateOnExit
width.setRejectInvalidValueOnChange
width.setStopOnError
width.setValidators
Anytime I write an incorrect input ("coucou", "0", "5001"), when I save my form or if I click in another field, the SpinnerItem just erase the wrong input or go back to previous correct input.
It seems there is no way for a SpinnerItem to keep the incorrect input and display red circle icon with '!'.
Am I missing something Isomorphic ?
Thanks by advance.