You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adrian Crum (JIRA)" <ji...@apache.org> on 2014/01/02 02:45:50 UTC

[jira] [Updated] (OFBIZ-5453) Set field in (at least) widget screen does not take into account a locale for (at least) the Float type

     [ https://issues.apache.org/jira/browse/OFBIZ-5453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-5453:
-------------------------------

    Attachment: OFBIZ-5453.patch

I have attached a patch that represents my recommendation for the GeoPoint data model.

Longitude and latitude are now Strings, and a UOM field indicates what those Strings represent. UOM conversion routines can be built to convert from one coordinate system to another.

I removed the relationship to DataSource. A geolocation service will reference a specific coordinate system (datum), so you can use that information to select the correct set of GeoPoint values.

The seed data includes the two most popular datums, each in two formats. It also includes the coordinate system for the Moon. That is not a joke - I put it there to remind everyone that a GeoPoint could exist anywhere in the universe, not just on Earth.


> Set field in (at least) widget screen does not take into account a locale for (at least) the Float type
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5453
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5453
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 11.04, SVN trunk, Release Branch 12.04, Release Branch 13.07
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk, Release Branch 12.04, Release Branch 13.07
>
>         Attachments: OFBIZ-5453.patch
>
>
> While working on Google Maps API migration from V2 to V3 I discovered an issue which is reflected by those 2 commits
> * http://svn.apache.org/viewvc?view=revision&revision=892579 
> * http://svn.apache.org/viewvc?view=revision&revision=895950
> In other words if you pass something like 
> <set field="geoPoints[+0].lat" value="37.4419" type="Float"/> 
> in a French OS or browser context you will get 37.0 in OFBiz context
> But if you pass 
> <set field="geoPoints[+0].lat" value="37,4419" type="Float"/>
> in an English OS or browser context you will get 37.0 in OFBiz context
> So we need either to fix this in code (ModelWidgetAction.java[132,171]) or to add a way to pass a locale to force/fix the Float(others?) value in OFBiz context (this is needed for instance for geolocation)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)