Forums de discussion
Where is CountryLocalService ?
petar banicevic, modifié il y a 15 années.
Where is CountryLocalService ?
Junior Member Publications: 73 Date d'inscription: 27/05/08 Publications récentes
Dears,
I can only find CountryService. Why there is no LocalService, is there some other way to get List of countries from Liferay Database ?
Thanks
I can only find CountryService. Why there is no LocalService, is there some other way to get List of countries from Liferay Database ?
Thanks
Wilson Man, modifié il y a 15 années.
RE: Where is CountryLocalService ?
Liferay Master Publications: 581 Date d'inscription: 21/06/06 Publications récentes<entity name="Country" local-service="false" remote-service="true">...</entity>
local-service is not enabled in portal's service.xml. to get the list of countries just call ...
CountryServiceUtil.getCountries()
or
CountryServiceUtil.getCountries(true)
if you just want the active countries.