incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmarga...@apache.org
Subject svn commit: r472754 - /incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js
Date Thu, 09 Nov 2006 03:12:48 GMT
Author: jmargaris
Date: Wed Nov  8 19:12:48 2006
New Revision: 472754

URL: http://svn.apache.org/viewvc?view=rev&rev=472754
Log:
checked in working file by mistake

Modified:
    incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js

Modified: incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js?view=diff&rev=472754&r1=472753&r2=472754
==============================================================================
--- incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js (original)
+++ incubator/xap/trunk/src/xap/xml/XalNamespaceHandler.js Wed Nov  8 19:12:48 2006
@@ -73,29 +73,12 @@
  * @throws UpdateException
  */
 xap.xml.XalNamespaceHandler.prototype.receiveDispatch = function( element ) {
+	xap.xml.XalNamespaceHandler.s_log.debug("receiveDispatch:" + element);
+	 
 	 //get the root and just append to it
 	 var uiDocument = this._session.getDocumentContainer().getUiDocument();
 	 var rootElement = uiDocument.getRootElement();
-	 var rootPane = null;
-	 
-	 for (var i = 0; i<rootElement.childNodes.length &&!rootPane; i++){
-	 	var child = rootElement.childNodes[i];
-	 	if (child.nodeType==google.DOM_ELEMENT && child.nodeName=="rootPane"){
-	 		alert("found an existing root pane");
-	 		rootPane = child;
-	 	}
-	 }
-	 
-	 if (!rootPane){
-	 	alert("Could not find a root pane creating a new one");	 	
-	 	
-	 	//TODO should we take this namespace from the element passed in instead?
-	    rootPane = uiDocument.createElement("rootPane",null,element.getNamespaceUri());
-	    rootPane.setAttribute("width","100%");
-	    rootPane.setAttribute("height","100%");
-	    rootElement.appendChild(rootPane);
-	 }
-	 rootPane.appendChild(element);
+	 rootElement.appendChild(element);
 }
 
 



Mime
View raw message