Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349787

Summary: SWING: Date Field does not show its value
Product: z_Archived Reporter: Stefan Götschi <stefan.goetschi>
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan.motsch, zimmermann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Stefan Götschi CLA 2011-06-20 04:04:36 EDT
PROBLEM DESCRIPTION:
- Assume a Date Field.
- Set the error status to WARNING.
- The preset value is not visible anymore.

EVALUATION:
The bug arises from a bugfix:
Entering some arbitrary (large) number into a date field resulted in the current date being set in the field and an error status set to ERROR.

The bugfix now only allows displaying user input in a field with an errorstatus but no preset values.

PROPOSED SOLUTION:
- We only apply the above bugfix in case the error status is set to ERROR. Don't apply the bugfix if the error status is only WARNING.
Comment 1 Ivan Motsch CLA 2011-06-28 04:59:41 EDT
Reverted reference bsi ticket 100004 (which causes that bug).
Removed obsolete (legacy) setDisplayText on model in case parsing failed.
That is the original cause of 100004 and also solves this ticket.
Comment 2 Matthias Zimmermann CLA 2011-10-10 12:41:37 EDT
shipped with scout 3.7.1