What about this:

Index: wicket/src/java/wicket/markup/html/link/PageLink.java
===================================================================
--- wicket/src/java/wicket/markup/html/link/PageLink.java       (revision 6861)
+++ wicket/src/java/wicket/markup/html/link/PageLink.java       (working copy)
@@ -64,7 +64,7 @@
                        public Page getPage()
                        {
                                // Create page using page factory
-                               return 
PageLink.this.getPage().getPageFactory().newPage(c);
+                               return null;
                        }
 
                        public Class getPageIdentity()
@@ -143,6 +143,9 @@
        public void onClick()
        {
                // Set page source's page as response page
-               setResponsePage(pageLink.getPage());
+               if (pageLink.getPage() != null)
+                       setResponsePage(pageLink.getPage());
+               else
+                       setResponsePage(pageLink.getPageIdentity());
        }
}

With this patch I've got a failing test in
wicket.markup.html.header.testing3.HeaderTest however.
-- 
     Jean-Baptiste Quenot
aka  John Banana Qwerty
http://caraldi.com/jbq/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to