Author: jdonnerstag
Date: Sun Jun 24 00:36:31 2007
New Revision: 550174

URL: http://svn.apache.org/viewvc?view=rev&rev=550174
Log:
reverted the change. It needs more discussions on the list

Modified:
    
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java

Modified: 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java?view=diff&rev=550174&r1=550173&r2=550174
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java
 (original)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/WebPage.java
 Sun Jun 24 00:36:31 2007
@@ -26,9 +26,7 @@
 import org.apache.wicket.ResourceReference;
 import org.apache.wicket.Response;
 import org.apache.wicket.Session;
-import org.apache.wicket.WicketRuntimeException;
 import org.apache.wicket.behavior.AbstractBehavior;
-import org.apache.wicket.behavior.IBehavior;
 import org.apache.wicket.markup.ComponentTag;
 import org.apache.wicket.markup.MarkupElement;
 import org.apache.wicket.markup.MarkupStream;
@@ -411,18 +409,5 @@
                        this.remove(header);
                }
                super.onDetach();
-       }
-
-       /**
-        * 
-        * @see 
org.apache.wicket.Component#add(org.apache.wicket.behavior.IBehavior)
-        */
-       public Component add(final IBehavior behavior)
-       {
-               throw new WicketRuntimeException(
-                               "You can not attach behaviors onto WebPages. 
Web pages do require a markup "
-                                               + "file but no specific tag to 
attach the page to. "
-                                               + "This is why behaviors such 
as HeaderContributor for example don't work if "
-                                               + "attached to a WebPage. 
Please attach the behavior to any other of your components.");
        }
 }


Reply via email to