You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by ds...@apache.org on 2003/08/06 04:56:54 UTC

cvs commit: jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/components Choose.java

dsolis      2003/08/05 19:56:54

  Modified:    contrib/src/org/apache/tapestry/contrib/components
                        Choose.java
  Log:
  Add cleanup code. Fix an error when used within a Foreach.
  
  Revision  Changes    Path
  1.2       +7 -1      jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/components/Choose.java
  
  Index: Choose.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/components/Choose.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Choose.java	26 Jul 2003 02:13:43 -0000	1.1
  +++ Choose.java	6 Aug 2003 02:56:54 -0000	1.2
  @@ -86,6 +86,12 @@
   		renderBody(writer, cycle);
   	}
   	
  +	protected void cleanupAfterRender(IRequestCycle cycle)
  +	{
  +		setConditionMet(false);
  +		super.cleanupAfterRender(cycle);
  +	}
  +	
   	public abstract boolean isConditionMet();
   	public abstract void setConditionMet(boolean value);
   }