Accessing JSON through javascript in custom portlet
Scenrio: Accessing the other custom portlet JSON services in our custom portlet through the javascript. Step:1 Enable remote-servie = true in service.xml as shown and build service to generate the services <service-builder package-path="com.liferay.testjson"> <namespace>custom</namespace> <entity name="jsontest" remote-service="true" local-service="true" uuid="true"> <column name="id" type="int" primary="true" /> <column name="name" type="String"></column> <column name="desc" type="String"></column> </entity> </service-builder> Step2: Open the class XXXXServiceImpl.class ...