History | Log In     View a printable version of the current page.  

Issue Details (XML | Word | Printable)

Key: UBA-7351
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Janak Mulani
Reporter: Marc Hermann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ULCBase

UITextComponent.setValue() does not respect default value of associated data type

Created: 28/Nov/07 05:19 PM   Updated: 14/May/08 04:40 PM
Component/s: datatype
Affects Version/s: ULC 6.2
Fix Version/s: UltraLightClient '08

Issue Links:
Reference
 
This issue is related to:
UBA-878 How to find out ULCTextField is empty Major Open


 Description  « Hide
In UITextComponent.setValue(), the value is set to null in case the value does not match the data type's criteria. But in such a case, the value should be set to IDataType.getDefaultValue() as this is the default value that should be used whenever the input does not match the data type.

public void setValue(Object value) { ... Object newValue = null; // this should be: Object newValue = fDataType.getDefaultValue(value); ... }

In UITextComponent.updateToModel(), this desired behaviour is already implemented.



 All   Comments   Change History      Sort Order:
There are no comments yet on this issue.