Author: jcompagner
Date: Thu Nov  1 07:52:01 2007
New Revision: 591029

URL: http://svn.apache.org/viewvc?rev=591029&view=rev
Log:
added protected componentChanged method:
/**
         * This method will be called for all components that are changed on 
the page So also auto
         * components or components that are not versioned.
         * 
         * If the parent is given that it was a remove or add from that parent 
of the given component.
         * else it was just a internal property change of that component.
WICKET-1012

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

Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java?rev=591029&r1=591028&r2=591029&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java 
(original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/Page.java Thu 
Nov  1 07:52:01 2007
@@ -1200,6 +1200,8 @@
         */
        private final boolean mayTrackChangesFor(final Component component, 
MarkupContainer parent)
        {
+               // first call the method so that people can track dirty 
components
+               componentChanged(component, parent);
                // Auto components do not participate in versioning since they 
are
                // added during the rendering phase (which is normally illegal).
                if (component.isAuto() || (parent == null && 
!component.isVersioned()) ||
@@ -1234,6 +1236,20 @@
                        // we are not tracking changes or the component not 
versioned
                        return false;
                }
+       }
+
+       /**
+        * This method will be called for all components that are changed on 
the page So also auto
+        * components or components that are not versioned.
+        * 
+        * If the parent is given that it was a remove or add from that parent 
of the given component.
+        * else it was just a internal property change of that component.
+        * 
+        * @param component
+        * @param parent
+        */
+       protected void componentChanged(Component component, MarkupContainer 
parent)
+       {
        }
 
        private void readObject(java.io.ObjectInputStream s) throws 
IOException, ClassNotFoundException


Reply via email to