You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sc...@apache.org on 2005/08/18 23:49:23 UTC

svn commit: r233385 - /myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/tree2/UITreeData.java

Author: schof
Date: Thu Aug 18 14:49:20 2005
New Revision: 233385

URL: http://svn.apache.org/viewcvs?rev=233385&view=rev
Log:
Fixes MYFACES-404 (Thanks to Mathais Werlitz for the patch)

Modified:
    myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/tree2/UITreeData.java

Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/tree2/UITreeData.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/tree2/UITreeData.java?rev=233385&r1=233384&r2=233385&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/tree2/UITreeData.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/custom/tree2/UITreeData.java Thu Aug 18 14:49:20 2005
@@ -213,10 +213,15 @@
          * do want to keep the saved state so that we can render the node with
          * the invalid value.
          */
+    	   	
         if (!keepSaved(context))
         {
             _saved = new HashMap();
         }
+        
+        // FIX for MYFACES-404
+        // do not use the cached model the render phase
+        _model = null;
 
         super.encodeBegin(context);
     }