Example usage for com.liferay.portal.kernel.servlet PortalMessages KEY_PORTLET_ID

List of usage examples for com.liferay.portal.kernel.servlet PortalMessages KEY_PORTLET_ID

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.servlet PortalMessages KEY_PORTLET_ID.

Prototype

String KEY_PORTLET_ID

To view the source code for com.liferay.portal.kernel.servlet PortalMessages KEY_PORTLET_ID.

Click Source Link

Usage

From source file:com.liferay.testmisc.portlet.TestPortlet.java

License:Open Source License

public void addPortalMessage(ActionRequest actionRequest, ActionResponse actionResponse) {

    PortalMessages.add(actionRequest, PortalMessages.KEY_JSP_PATH, "/portal_message/portal_message.jsp");

    PortalMessages.add(actionRequest, PortalMessages.KEY_PORTLET_ID, PortletKeys.TEST_MISC);
}