Author: thomas.heute(a)jboss.com
Date: 2010-04-07 06:03:24 -0400 (Wed, 07 Apr 2010)
New Revision: 2521
Modified:
portal/branches/EPP_5_0_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/ModelAdapter.java
Log:
JBEPP-290: Error when adding remote portlet in page - "Does not make sense"
Modified:
portal/branches/EPP_5_0_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/ModelAdapter.java
===================================================================
---
portal/branches/EPP_5_0_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/ModelAdapter.java 2010-04-07
09:09:54 UTC (rev 2520)
+++
portal/branches/EPP_5_0_Branch/webui/portal/src/main/java/org/exoplatform/portal/webui/application/ModelAdapter.java 2010-04-07
10:03:24 UTC (rev 2521)
@@ -228,10 +228,14 @@
WSRP wsrp = dataStorage.load(state, ApplicationType.WSRP_PORTLET);
if (wsrp == null)
{
- // create and save state
+ // create
wsrp = new WSRP();
wsrp.setPortletId(applicationId);
- dataStorage.save(state, wsrp);
+ if (!(state instanceof TransientApplicationState))
+ {
+ // only save state if it's not transient
+ dataStorage.save(state, wsrp);
+ }
}
return StatefulPortletContext.create(wsrp.getPortletId(),
WSRPPortletStateType.instance, wsrp);
}
Show replies by date