Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.2
-
Component/s: ACE-Components, Bridge, Framework, ICE-Components
-
Labels:None
-
Environment:ICEfaces 2 MyFaces 2
-
Assignee Priority:P2
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
In addition to official support for standard ICEfaces 2 applications running on MyFaces 2, we need to enable support for portlets.
Issue Links
Activity
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Deryk Sinotte
made changes -
Ken Fyten
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Affects | [Documentation (User Guide, Ref. Guide, etc.)] | |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.1-Beta2 [ 10294 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #26122 | Fri Oct 28 09:42:05 MDT 2011 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/push/servlet/ProxySession.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #26120 | Fri Oct 28 09:28:49 MDT 2011 | deryk.sinotte | |
Files Changed | ||||
DEL
/icefaces2/trunk/icefaces/lib/portlets/portletfaces-bridge-2.0.1.jar
ADD /icefaces2/trunk/icefaces/lib/portlets/portletfaces-bridge-2.0.2-SNAPSHOT.jar MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/util/EnvUtils.java MODIFY /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/push/DynamicResourceDispatcher.java ADD /icefaces2/trunk/icefaces/core/src/main/java/org/icefaces/impl/push/servlet/ProxySession.java |
Deryk Sinotte
made changes -
Attachment | dynamic-portlet-resources.png [ 13709 ] |
Deryk Sinotte
made changes -
Deryk Sinotte
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 2.1 [ 10241 ] | |
Assignee Priority | P2 | |
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Deryk Sinotte
created issue -
So the changes to the DynamicResourceDispatcher were relying on storage in the session for keeping a reference to the session based dispatcher. Unfortunately, the ExternalContext.getSessionMap() method returns the PORTLET-scoped session map which differs from portlet to portlet and there is no way to directly access the APPLICATION-scoped session in the JSF API. So I created a ProxySession that uses reflection to access the method we want when faced with storing things in the session. We use the same proxy approach in other areas for requests and responses.
By adding this new ProxySession and updating the PortletFaces Bridge to the latest 2.0.2 SNAPSHOT, it solves nearly all the issues with resources noted above. The exception is that the CKEditor still appears to have some issues. There have been recent changes in this area (
ICE-7293) to support not having the CKEditor resources loaded proactively unless desired. These changes seem to impact the use of the editor in portlets so this still requires investigation.