Author: jcompagner
Date: Thu May 22 07:21:22 2008
New Revision: 659118

URL: http://svn.apache.org/viewvc?rev=659118&view=rev
Log:
WICKET-1465 getPage throws an exception, made it findParent(Page.class)

Modified:
    
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java

Modified: 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
URL: 
http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java?rev=659118&r1=659117&r2=659118&view=diff
==============================================================================
--- 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
 (original)
+++ 
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java
 Thu May 22 07:21:22 2008
@@ -726,7 +726,7 @@
                RequestCycle.get().setResponse(encodingBodyResponse);
 
                // Initialize temporary variables
-               final Page page = component.getPage();
+               final Page page = (Page)component.findParent(Page.class);
                if (page == null)
                {
                        // dont throw an exception but just ignore this 
component, somehow it got


Reply via email to