juanosuna/expressui-framework — pull request #6 by froed (2013-03-25 13:38:59+00:00)
Title: Page with NestedProperty other than String Types

This branch demonstrates a BUG related to entities with nested properties with types other than strings.

TestCase:
---------------
- go to Site page
- add a new Site with name, latitude, longitude
- i.e. Name: test, Latitude: 12,1234 (or 12.1234), Longitude: 13,987 (or 13.987)
- click save & close leads to a exception

Mar 25, 2013 2:37:18 PM com.vaadin.Application terminalError
SEVERE: Terminal error:
java.lang.IllegalArgumentException: Cannot format given Object as a Number
at java.text.DecimalFormat.format(DecimalFormat.java:505)
at java.text.Format.format(Format.java:157)
at com.expressui.core.view.field.format.JDKBridgePropertyFormatter.format(JDKBridgePropertyFormatter.java:84)
at com.expressui.core.view.results.ResultsTable.formatPropertyValue(ResultsTable.java:293)
at com.vaadin.ui.Table.getPropertyValue(Table.java:3523)
at com.vaadin.ui.Table.getVisibleCellsNoCache(Table.java:1923)
at com.vaadin.ui.Table.refreshRenderedCells(Table.java:1542)
at com.vaadin.ui.Table.refreshRowCache(Table.java:2255)