incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r473617 - /incubator/xap/trunk/src/xap/session/EventHandler.js
Date Sat, 11 Nov 2006 01:40:53 GMT
Author: jmargaris
Date: Fri Nov 10 17:40:53 2006
New Revision: 473617

URL: http://svn.apache.org/viewvc?view=rev&rev=473617
Log:
Now using asynch request for retrieveAndProcess

Modified:
    incubator/xap/trunk/src/xap/session/EventHandler.js

Modified: incubator/xap/trunk/src/xap/session/EventHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/session/EventHandler.js?view=diff&rev=473617&r1=473616&r2=473617
==============================================================================
--- incubator/xap/trunk/src/xap/session/EventHandler.js (original)
+++ incubator/xap/trunk/src/xap/session/EventHandler.js Fri Nov 10 17:40:53 2006
@@ -87,7 +87,9 @@
 	//we assume the event value is already qualified!
 	else{
 		try{
-			this._session.getRequestService().retrieveAndProcess(eventValue);
+			
+			//IMPORTANT 
+			this._session.getRequestService().retrieveAndProcessAsynchronously(eventValue, this);
 		}
 		catch( exception ){
 			this._session.handleException( exception );
@@ -95,6 +97,15 @@
 	}
 	
 	return null;
+}
+
+xap.session.EventHandler.prototype.requestCompleted = function(){
+	
+}
+
+xap.session.EventHandler.prototype.requestFailed = function(url, response, error ){
+	alert("request failed for URL:" + url);
+	//TODO handle better
 }
 
 xap.session.EventHandler.prototype._handleObjectEvent = function( eventValue, eventElement,
clientEvent){



Mime
View raw message