Hi Isomorphic. As mentioned in this post, when using the es_CO locale (or other Spanish language locales), and typing a decimal like 0,3333 in a field of type "localeFloat" or "localeCurrency" (which expect the comma to be used as decimal separator for this locale), the value is properly recognized. But changing the value to 0.3333 generates an undefined exception:
After this, the application turns unresponsive.
Here is a simple test case:
What I am doing wrong here?
I am using SmartGWT 6.0p 2016-09-17 and Chrome Version 53.0.2785.116 m.
*08:27:48.027:KPR7:WARN:Log:java.lang.ClassCastException [No error.stack available]
Breaking on exception: java.lang.ClassCastException
Breaking on exception: java.lang.ClassCastException
Here is a simple test case:
Code:
[B]buffer_history.ds.xml[/B] <?xml version="1.0" encoding="utf-8"?> <DataSource ID="buffer_history" serverType="sql" tableName="buffer_history" xmlns:fmt="focuss/fmt"> <fields> <field name="id" primaryKey="true" hidden="true"/> <field name="sku"/> <field name="location"/> <field name="buffer_size" type="localeFloat"/> <field name="unit_price" type="localeCurrency"/> <field name="movements_update_date" format="dd/MM/yyyy"/> </fields> </DataSource>
Code:
[B]TestCases.java[/B] public class TestCases implements EntryPoint { public void onModuleLoad() { ListGrid grid = new ListGrid(DataSource.get("buffer_history")); grid.setAutoFetchData(true); grid.setCanEdit(true); HLayout layout = new HLayout(); layout.setWidth100(); layout.setHeight100(); layout.addMember(grid); layout.show(); } }
I am using SmartGWT 6.0p 2016-09-17 and Chrome Version 53.0.2785.116 m.
Comment