You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2007/08/15 01:41:40 UTC

svn commit: r565972 - /wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java

Author: knopp
Date: Tue Aug 14 16:41:39 2007
New Revision: 565972

URL: http://svn.apache.org/viewvc?view=rev&rev=565972
Log:
save markup stream index before checking for component visibility

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?view=diff&rev=565972&r1=565971&r2=565972
==============================================================================
--- 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 Tue Aug 14 16:41:39 2007
@@ -1978,6 +1978,14 @@
 	 */
 	public final void render(final MarkupStream markupStream)
 	{
+		// We need to know the index before we do the visibility check.
+		// Otherwise
+		// we wouldn't know the markup index for invisible components
+		if (markupStream != null)
+		{
+			markupIndex = markupStream.getCurrentIndex();
+		}
+
 		markRendering();
 
 		setMarkupStream(markupStream);