Details
Description
I found a bug in the PortletViewHandlerImpl.createView() and restoreView() methods. The createView() method creates a UIViewRoot. UIViewRoot is not a NamingContainer and does not make unique client ids for the portal environment.
The PortletViewHandlerImpl is ONLY used in the portal environment and should create PortletUIViewRoot objects instead of a UIViewRoot objects.
The Portals Bridges bug PB-35 ( http://issues.apache.org/jira/browse/PB-35 ) addressed a namespacing problem with the jsf portals bridge. Multiple classes were changed to create a PortletUIViewRoot to fix the namespacing problem. The PortletViewHandlerImpl class must have been missed when converting the bridge to use PortletUIViewRoot.
I have included a code example on how to fix this problem. Please see the latest attached file.