Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321944 - DecimalTextRidget - Exception in updateFromModel() when using converter
Summary: DecimalTextRidget - Exception in updateFromModel() when using converter
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: ridget (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.0.0.M2   Edit
Assignee: Elias Volanakis CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-06 02:18 EDT by Elias Volanakis CLA
Modified: 2010-10-29 06:18 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Volanakis CLA 2010-08-06 02:18:08 EDT
This code fails:

			rInput.setMaxLength(8);
			rInput.setPrecision(2);
			rInput.bindToModel(new DoubleBean(1234.000000002), DoubleBean.PROP_VALUE);
			//---- adding a converter -----
			final IConverter myConverter = ToStringConverterFactory.createNumberConverter(Double.class, 2);
			rInput.setModelToUIControlConverter(myConverter);
			// ----------------------------
			rInput.updateFromModel();

This is a very simple bug. There is a boolean flag that should be set to true when invoking setModelToUIControlConverter(...). The flag is currently being set in the wrong method (setUIControlToModelConverter). Fixing right now...
Comment 1 Elias Volanakis CLA 2010-08-06 02:50:37 EDT
Resolved in HEAD.