To add success message and page refresh in configuration page, just add the following snippet in your ConfigurationImpl class's processAction method ..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LiferayPortletConfig liferayPortletConfig = (LiferayPortletConfig) portletConfig; | |
String portletResource = ParamUtil.getString(actionRequest, "portletResource"); | |
SessionMessages.add(actionRequest, liferayPortletConfig.getPortletId() + SessionMessages.KEY_SUFFIX_REFRESH_PORTLET, portletResource); | |
SessionMessages.add(actionRequest, liferayPortletConfig.getPortletId() + SessionMessages.KEY_SUFFIX_UPDATED_CONFIGURATION); |
No comments:
Post a Comment