Uploaded image for project: 'Liferay Apps'
  1. Liferay Apps
  2. LRA-125

Allow Address Validator Street Format To Be Customized

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Component/s: Address Validator
    • Labels:
      None
    • Environment:
      CentOS 6.5 x64 / Liferay 6.2 GA3 CE / Oracle Java 1.8.0

      Description

      The address validator works very well but, the format of the street address should be modifiable via the properties file or some other means.
      Right now, it is returning StreetName route. I would like it to return route StreetName.
      It seems there is not an easy way to do this since it is final compiled into the class instead of using a property file.

      Specifically in the GoogleGeocodingValidator.java

      private final static String STREET_ADDRESS_FORMAT = "%s %s";

      and

      resultAddress.setStreet(String.format(STREET_ADDRESS_FORMAT, route, streetNumber));

        Attachments

          Activity

            People

            • Assignee:
              charles.rodriguez Charles Javier Rodriguez Beauregard [X] (Inactive)
              Reporter:
              cefranklin cefranklin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support