Hi,
this is now the bug report that prevents us from going back to 4.1p (see my other post from today http://forums.smartclient.com/showthread.php?t=32065).
Affected environment
* 4.1p latest nightlies (2015-01-10)
* IE 11.0.9600.17501
The bug disappears when using on of these browsers
* Firefox 34 on Windows
* Chromium on Ubuntu
* IE 8 emulated mode from IE 11.0.9600.17501
The bug is also not reproducable
* SmartGwt 5.0p latest nightly (2015-0-10) EDIT: I just noticed an internal bug report ticket where one of our testers has seen this in 5.0p and IE11, too. But I cannot reproduce it. When you find the reason for this bug and fix it in 4.1p you should have a look at 5.0p, too.
The core problem is that a TextItem (and maybe other FormItems) are reporting themselves as unchanged when the formitem is emptied.
The attached test case shows this.
Steps to reproduce:
* DataSourceA as a source for the DynamicForm with
- DataSourceTextField for TextItem-FormItem
* DynamicForm with
- Attached to DataSourceA
- TextItem attached to DataSourceTextField
- Attached to ValuesManager
* ValuesManager attached to DataSourceA and DynamicForm
* Button
- valuesManager.validate()
- GWT.log(valuesManager.getChangedValues().toString());
- valuesManager.saveData();
* Start app
* Enter a single character in the text field
* Hit Save Button
- Note that getChangedValues logs that both attributes got changed
* Empty the TextItem (by selecting the text and hitting backspace, or any other way)
* Hit Save Button
- valuesManager.getChangedValues().size() is 0!!!!
Additionally info: An ItemChangedHandler will also not fire when the formItem is emptied.
Regards,
Andre
this is now the bug report that prevents us from going back to 4.1p (see my other post from today http://forums.smartclient.com/showthread.php?t=32065).
Affected environment
* 4.1p latest nightlies (2015-01-10)
* IE 11.0.9600.17501
The bug disappears when using on of these browsers
* Firefox 34 on Windows
* Chromium on Ubuntu
* IE 8 emulated mode from IE 11.0.9600.17501
The bug is also not reproducable
* SmartGwt 5.0p latest nightly (2015-0-10) EDIT: I just noticed an internal bug report ticket where one of our testers has seen this in 5.0p and IE11, too. But I cannot reproduce it. When you find the reason for this bug and fix it in 4.1p you should have a look at 5.0p, too.
The core problem is that a TextItem (and maybe other FormItems) are reporting themselves as unchanged when the formitem is emptied.
The attached test case shows this.
Steps to reproduce:
* DataSourceA as a source for the DynamicForm with
- DataSourceTextField for TextItem-FormItem
* DynamicForm with
- Attached to DataSourceA
- TextItem attached to DataSourceTextField
- Attached to ValuesManager
* ValuesManager attached to DataSourceA and DynamicForm
* Button
- valuesManager.validate()
- GWT.log(valuesManager.getChangedValues().toString());
- valuesManager.saveData();
* Start app
* Enter a single character in the text field
* Hit Save Button
- Note that getChangedValues logs that both attributes got changed
* Empty the TextItem (by selecting the text and hitting backspace, or any other way)
* Hit Save Button
- valuesManager.getChangedValues().size() is 0!!!!
Additionally info: An ItemChangedHandler will also not fire when the formItem is emptied.
Regards,
Andre
Comment