Author: knopp
Date: Thu Oct  4 13:22:42 2007
New Revision: 582002

URL: http://svn.apache.org/viewvc?rev=582002&view=rev
Log:
WICKET-824

Modified:
    wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java

Modified: 
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java?rev=582002&r1=582001&r2=582002&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java 
(original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java 
Thu Oct  4 13:22:42 2007
@@ -846,6 +846,14 @@
                        }
                        feedbacks.add(this);
                }
+
+               // If any of the components on page is not stateless, we need 
to bind the session
+               // before we start rendering components, as then jsessionid 
won't be appended
+               // for links rendered before first stateful component
+               if (isStateless() && getSession().isTemporary())
+               {
+                       getSession().bind();
+               }
        }
 
        /**


Reply via email to