Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:Portal(Liferay)
-
Workaround Exists:Yes
-
Workaround Description:
Description
------------------- DnDCache.java
public static DnDCache getInstance(FacesContext context, boolean encoding) {
String viewId = context.getViewRoot().getViewId();
Map map = context.getExternalContext().getSessionMap();
DnDCache cache = (DnDCache) map.get(SESSION_KEY);
if (cache == null) {
cache = new DnDCache();
map.put(SESSION_KEY, cache);
}
return cache;
}
------------------- ISSUE
The instance taken using this method for the DnDCache is in the context of the current running portlet. Hence, if a drag was made from one portlet to another, the dragValue and dropValue properties would be null because the DnDCache instance is local to the source portlet.
public static DnDCache getInstance(FacesContext context, boolean encoding) {
String viewId = context.getViewRoot().getViewId();
Map map = context.getExternalContext().getSessionMap();
DnDCache cache = (DnDCache) map.get(SESSION_KEY);
if (cache == null) {
cache = new DnDCache();
map.put(SESSION_KEY, cache);
}
return cache;
}
------------------- ISSUE
The instance taken using this method for the DnDCache is in the context of the current running portlet. Hence, if a drag was made from one portlet to another, the dragValue and dropValue properties would be null because the DnDCache instance is local to the source portlet.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #15087 | Fri Nov 02 17:07:04 MDT 2007 | adnan.durrani | Suggested fix applied for |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/utils/DnDCache.java
|