Author: taylor Date: Thu Jul 3 18:48:59 2014 New Revision: 1607712 URL: http://svn.apache.org/r1607712 Log: JS2-1298: ensure that fragments always have an id, in cases where portlet pipeline or JPT dynamically create fragments. This fixes bug with portlet preferences not reading or storing correctly with instantly created portlets via JPT or portlet pipeline
Modified: portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-registry/src/main/java/org/apache/jetspeed/om/window/impl/PortletWindowImpl.java Modified: portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-registry/src/main/java/org/apache/jetspeed/om/window/impl/PortletWindowImpl.java URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-registry/src/main/java/org/apache/jetspeed/om/window/impl/PortletWindowImpl.java?rev=1607712&r1=1607711&r2=1607712&view=diff ============================================================================== --- portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-registry/src/main/java/org/apache/jetspeed/om/window/impl/PortletWindowImpl.java (original) +++ portals/jetspeed-2/portal/branches/JETSPEED-BRANCH-2.2.2-POST-RELEASE/components/jetspeed-registry/src/main/java/org/apache/jetspeed/om/window/impl/PortletWindowImpl.java Thu Jul 3 18:48:59 2014 @@ -92,6 +92,9 @@ public class PortletWindowImpl implement this.requestContext = requestContext; this.id = fragment.getId(); this.portletEntityId = fragment.getFragmentId(); + if (this.portletEntityId == null) { + this.portletEntityId = this.id; + } this.fragment = fragment; this.pd = pd; this.valid = pd != null; --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-dev-h...@portals.apache.org