commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hgi...@apache.org
Subject svn commit: r331171 - /jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/ComponentTag.java
Date Mon, 07 Nov 2005 01:06:51 GMT
Author: hgilde
Date: Sun Nov  6 17:06:48 2005
New Revision: 331171

URL: http://svn.apache.org/viewcvs?rev=331171&view=rev
Log:
Fixes JELLY-223

Modified:
    jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/ComponentTag.java

Modified: jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/ComponentTag.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/ComponentTag.java?rev=331171&r1=331170&r2=331171&view=diff
==============================================================================
--- jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/ComponentTag.java
(original)
+++ jakarta/commons/proper/jelly/trunk/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/ComponentTag.java
Sun Nov  6 17:06:48 2005
@@ -184,24 +184,6 @@
 	public void setTagName(String name) {
 		this.tagName = name;
 	}
-	
-	/** Runs the body of this script again after clearing the content
-	 * of this component.
-	 * This is useful to use jelly-logic and "re-populate" a part of the user-interface
-	 * after having updated a model part (e.g. an XML-document).
-	 * @throws JellyTagException if anything
-	 */
-	public void rerun() throws JellyTagException {
-		Component comp = getComponent();
-		if(comp instanceof java.awt.Container) {
-			((java.awt.Container) comp).removeAll();
-		}
-		this.doTag(currentOutput,false);
-		if ( comp instanceof javax.swing.JComponent ) {
-			((javax.swing.JComponent) comp).revalidate();
-		}
-	}
-	
 
     /**
      * Adds a WindowListener to this component
@@ -441,13 +423,8 @@
      * @see org.apache.commons.jelly.Tag#doTag(org.apache.commons.jelly.XMLOutput)
      */
     public void doTag(XMLOutput output) throws JellyTagException {
-        this.doTag(output,true);
-    }
-    
-    public void doTag(XMLOutput output, boolean resetBean) throws JellyTagException {
-        if(resetBean) clearBean();
         super.doTag(output);
-        //clearBean();
+        clearBean();
     }
 
     /** Sets the bean to null, to prevent it from



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message