O'Reilly logo

Liferay User Interface Development by Frank Yu, Xinsheng Chen, Jonas X. Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AJAX for portlet user interface

We can use AJAX to add or change page content without refreshing the portal page. In this way we improve performance in user-site interaction—it is an interesting UI experience. This is achieved by using the resource URL with AJAX. We will implement this in the uisix portlet:

  1. Create src/com/sample/jsp/portlet/JSPPortlet.java in the $PLUGINS_SDK_HOME/portlets/uisix-portlet/docroot/WEB-INF directory.
  2. In the $PLUGINS_SDK_HOME/portlets/uisix-portlet/docroot/WEB-INF/portlet.xml file, change<portlet-class>com.liferay.util.bridges.mvc.MVCPortlet</portlet-class> into<portlet-class>com.sample.jsp.portlet.JSPPortlet</portlet-class>.
  3. Refresh the $PLUGINS_SDK_HOME project in Eclipse. If necessary, include portal-kernel.jar, portal-service.jar ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required