Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Invalid
-
Affects Version/s: 1.8DR#1
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
Description
Tree's navigatedNode currentNode fields are both DefaultMutableTreeNode objects, which means that trying to save the last selected or expanded node info, may serialize the entire tree model (twice). That could also entail a memory leak, if the model changes, while these two fields continue referencing the old model's nodes. We need to instead be storing some kind of path expression, and just look up the nodes as needed.
Issue Links
Activity
Mark Collette
created issue -
Mark Collette
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 1.8DR#2 [ 10142 ] | |
Assignee | Mark Collette [ mark.collette ] |
Mark Collette
made changes -
Mark Collette
made changes -
Mark Collette
made changes -
Mark Collette
made changes -
Mark Collette
made changes -
Mark Collette
made changes -
Ken Fyten
made changes -
Assignee Priority | P1 | |
Assignee | Mark Collette [ mark.collette ] | Adnan Durrani [ adnan.durrani ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #17859 | Mon Nov 03 13:27:36 MST 2008 | adnan.durrani | Fix related to the Support added so the getNavigatedNode would work after save/restore, if accessed by the bean directly. |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/tree/Tree.java
MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/tree/TreeRenderer.java |
Adnan Durrani
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Adnan Durrani
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Invalid [ 6 ] |
Ken Fyten
made changes -
Fix Version/s | 1.8 [ 10161 ] | |
Assignee Priority | P1 |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Adnan Durrani [ adnan.durrani ] |
It came across that both the "navigatedNode" and the "currentNode" do not need to saved/restore.
Reason:
The "navigated node" property has never being accessed. However the decode method of the Tree component do the lookup of the "navigated node" using the "navigatedPathNode" sent by the client, to just to flip the Expended state. So it doesn't require state variable.
The "currentNode" is a state variable which represents the current processing node, which is set inside the iteration and its not required after JSF lifecycle completes.