tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dso...@apache.org
Subject cvs commit: jakarta-tapestry/contrib/src/org/apache/tapestry/contrib/components Choose.java
Date Wed, 06 Aug 2003 02:56:54 GMT
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);
   }
  
  
  

Mime
View raw message