Bug in assigning converters [message #1031935] |
Tue, 02 April 2013 11:37 |
Clemens Bartz Messages: 5 Registered: December 2012 |
Junior Member |
|
|
Hello,
I am using NatTable version 0.9.0 and I want to use my own converter as shown in the documentation. There is, however a bug in the code.
For this reason, I have created a new converter:
public class NewBigDecimalConverter extends DefaultDisplayConverter {
@Override
public Object canonicalToDisplayValue(ILayerCell cell,
IConfigRegistry configRegistry, Object canonicalValue) {
return "Test";
}
}
I am also adding the converter to every cell. There are no other converters in the application:
configRegistry.registerConfigAttribute(
CellConfigAttributes.DISPLAY_CONVERTER,
new NewBigDecimalConverter(),
"BODY"
);
I have also checked the cells. They have the required labels (255255255 is another label):
Labels:
255255255
EVEN_BODY
BODY
However, my converter is not called. Every cell shows the original value (a big decimal number) and not my converted value. Any chance to debug this one even further?
Regards,
Clemens
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03911 seconds