Legacy Knowledge Base
Published Jul. 2, 2025

Using data providers to populate states based on their country

Written By

Kanchan Bisht

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

Environment

  • Liferay 7.2

Resolution

  • To find a list of the registered 'JSON' web services or to use these services in Liferay DXP, navigate to 'http://localhost:8080/api/jsonws' if the local server is running.
  • The 'https://restcountries.eu/rest/v2/region/{region}?fields=name' URL is exposed to apply a region (for example, Americas, Europe, or Oceania) filter for the countries of the world, not states and that's the reason it is unable to populate the states based on the country selection.
  • If there is a requirement to populate states based on the country selection then need to opt for customization or another external rest web service.
    • Kindly, test the response of Rest web services before using them.
    • Customization falls beyond Liferay Support.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base