Author: ivaynberg
Date: Thu May 28 15:59:59 2009
New Revision: 779638

URL: http://svn.apache.org/viewvc?rev=779638&view=rev
Log:
WICKET-2293 improve Form#loadPersistentFormComponetValues
Issue: WICKET-2293

Modified:
    
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java

Modified: 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java?rev=779638&r1=779637&r2=779638&view=diff
==============================================================================
--- 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java 
(original)
+++ 
wicket/trunk/wicket/src/main/java/org/apache/wicket/markup/html/form/Form.java 
Thu May 28 15:59:59 2009
@@ -816,7 +816,7 @@
                                // once the user submits the Form containing 
that FormComponent.
                                // Note: if that is true, values may remain 
persisted longer
                                // than really necessary
-                               if (formComponent.isVisibleInHierarchy() && 
formComponent.isPersistent())
+                               if (formComponent.isPersistent() && 
formComponent.isVisibleInHierarchy())
                                {
                                        // The persister
                                        final IValuePersister persister = 
getValuePersister();


Reply via email to