Author: kien_nguyen
Date: 2011-10-28 04:05:15 -0400 (Fri, 28 Oct 2011)
New Revision: 7906
Modified:
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/gadget/webui/component/UIGadgetPortlet.java
Log:
GTNPORTAL-2110 Gadget Wrapper portlets default horoscope gadget doesnt work propertly
Modified:
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/gadget/webui/component/UIGadgetPortlet.java
===================================================================
---
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/gadget/webui/component/UIGadgetPortlet.java 2011-10-28
07:54:08 UTC (rev 7905)
+++
portal/trunk/portlet/dashboard/src/main/java/org/exoplatform/gadget/webui/component/UIGadgetPortlet.java 2011-10-28
08:05:15 UTC (rev 7906)
@@ -79,6 +79,32 @@
this.userPref = pref;
}
+ @Override
+ public void processAction(WebuiRequestContext context) throws Exception
+ {
+ super.processAction(context);
+
+ PortletRequest req = context.getRequest();
+ userPref = req.getParameter("userPref");
+
+ if (userPref != null && !userPref.isEmpty())
+ {
+ PortletPreferences prefs = req.getPreferences();
+ prefs.setValue("userPref", userPref);
+ prefs.store();
+ }
+ }
+
+ @Override
+ public void processRender(WebuiApplication app, WebuiRequestContext context) throws
Exception
+ {
+ PortletRequest req = context.getRequest();
+ PortletPreferences prefs = req.getPreferences();
+ userPref = prefs.getValue("userPref", null);
+
+ super.processRender(app, context);
+ }
+
public String getUrl()
{
PortletRequestContext pcontext =
(PortletRequestContext)WebuiRequestContext.getCurrentInstance();
Show replies by date