You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2006/10/04 20:22:28 UTC

svn commit: r453007 - in /incubator/xap/trunk/src/xap: requestservice/RequestService.js session/ClientSession.js

Author: jmargaris
Date: Wed Oct  4 13:22:27 2006
New Revision: 453007

URL: http://svn.apache.org/viewvc?view=rev&rev=453007
Log:
changed start page retrieval to be separate method

Modified:
    incubator/xap/trunk/src/xap/requestservice/RequestService.js
    incubator/xap/trunk/src/xap/session/ClientSession.js

Modified: incubator/xap/trunk/src/xap/requestservice/RequestService.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/requestservice/RequestService.js?view=diff&rev=453007&r1=453006&r2=453007
==============================================================================
--- incubator/xap/trunk/src/xap/requestservice/RequestService.js (original)
+++ incubator/xap/trunk/src/xap/requestservice/RequestService.js Wed Oct  4 13:22:27 2006
@@ -64,6 +64,15 @@
 }
 
 /**
+ * Method used to get the first page of the application. This is special-cased
+ * as we may want to do something more advanced (like show/hide splash screen)
+ * in the future.
+ */
+xap.requestservice.RequestService.prototype.retrieveStartPage = function(url) {
+  this.retrieveAndProcess(url);
+}
+
+/**
  * Asynchronously sends to the given url - the response is assumed to be
  * in XML format and will be processed automatically by the client.
  * 

Modified: incubator/xap/trunk/src/xap/session/ClientSession.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/session/ClientSession.js?view=diff&rev=453007&r1=453006&r2=453007
==============================================================================
--- incubator/xap/trunk/src/xap/session/ClientSession.js (original)
+++ incubator/xap/trunk/src/xap/session/ClientSession.js Wed Oct  4 13:22:27 2006
@@ -214,7 +214,7 @@
 	this._processConfiguration();
 	var requestService = this.getRequestService();
 	try{
-		requestService.retrieveAndProcess( startPage );
+		requestService.retrieveStartPage( startPage );
 	}
 	catch( exception ){
 		this.handleException( exception);