Author: ehillenius
Date: Wed Jun  6 17:04:57 2007
New Revision: 545002

URL: http://svn.apache.org/viewvc?view=rev&rev=545002
Log:
expose the at times very useful information on whether a component has been 
rendered yet at all

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

Modified: 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java?view=diff&rev=545002&r1=545001&r2=545002
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
 (original)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Component.java
 Wed Jun  6 17:04:57 2007
@@ -1529,6 +1529,17 @@
        }
 
        /**
+        * Gets whether this component was rendered at least once.
+        * 
+        * @return true if the component has been rendered before, false if it 
is
+        *         merely constructed
+        */
+       public final boolean hasBeenRendered()
+       {
+               return getFlag(FLAG_HAS_BEEN_RENDERED);
+       }
+
+       /**
         * @return True if this component has an error message
         */
        public final boolean hasErrorMessage()


Reply via email to