tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andy...@apache.org
Subject svn commit: r594040 - /tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/DojoAjaxResponseContributorImpl.java
Date Mon, 12 Nov 2007 07:58:50 GMT
Author: andyhot
Date: Sun Nov 11 23:58:49 2007
New Revision: 594040

URL: http://svn.apache.org/viewvc?rev=594040&view=rev
Log:
Also check the parameters, instead of just the headers for  dojo-ajax-request... makes simpler
debugging

Modified:
    tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/DojoAjaxResponseContributorImpl.java

Modified: tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/DojoAjaxResponseContributorImpl.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/DojoAjaxResponseContributorImpl.java?rev=594040&r1=594039&r2=594040&view=diff
==============================================================================
--- tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/DojoAjaxResponseContributorImpl.java
(original)
+++ tapestry/tapestry4/trunk/tapestry-framework/src/java/org/apache/tapestry/services/impl/DojoAjaxResponseContributorImpl.java
Sun Nov 11 23:58:49 2007
@@ -77,6 +77,10 @@
      */
     public boolean handlesResponse(IRequestCycle cycle)
     {
+        String parm = cycle.getParameter(DOJO_AJAX_HEADER);
+        
+        if (parm != null && Boolean.valueOf(parm).booleanValue())
+            return true;
         return _webRequest.getHeader(DOJO_AJAX_HEADER) != null;
     }
     



Mime
View raw message