@Override
public void processAction(ActionRequest req, ActionResponse resp)
throws PortletException, IOException {
// the only action for this portlet is to reset the stored messages
String actionName = req.getParameter("action");
logger.fine("MBP: Resetting messages. numMsgs = 0, actionName = " + actionName);
ArrayList<String> msgs = new ArrayList<String>();
StringBuffer sb = new StringBuffer();
sb.append("<p style='margin:2px 5px 2px 5px; color:#00D;"
+ " background-color:#AAF;'>");
sb.append("Reset - No messages.");
sb.append("</p>");
msgs.add(sb.toString());
resp.setRenderParameter(PARAM_NUM_MSGS, "0");
req.getPortletSession().setAttribute(ATTRIB_MSGS, msgs);
}
MessageBoxPortlet.java 文件源码
java
阅读 15
收藏 0
点赞 0
评论 0
项目:SinglePageAppPortlets
作者:
评论列表
文章目录