incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbuff...@apache.org
Subject svn commit: r470566 - in /incubator/xap/trunk/WebContent/examples: componentEvents/ dataBinding/ demo/ helloWorld/ html-xmodify/
Date Thu, 02 Nov 2006 22:23:17 GMT
Author: bbuffone
Date: Thu Nov  2 14:23:16 2006
New Revision: 470566

URL: http://svn.apache.org/viewvc?view=rev&rev=470566
Log:
I have updated the starting process of the XAP engine with the HTML page.
This changes is defined in emails from me on the 8/29.  
This changes break compatibilty with existing samples. 
To see how the new process works check out the new samples in 
the startup folder.

Modified:
    incubator/xap/trunk/WebContent/examples/componentEvents/index.html
    incubator/xap/trunk/WebContent/examples/dataBinding/decimalFormatter.html
    incubator/xap/trunk/WebContent/examples/dataBinding/formatterChain.html
    incubator/xap/trunk/WebContent/examples/dataBinding/index.html
    incubator/xap/trunk/WebContent/examples/dataBinding/javascriptDatasource.html
    incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.html
    incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.xal
    incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.html
    incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter.html
    incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter_altSyntax.html
    incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.html
    incubator/xap/trunk/WebContent/examples/dataBinding/rss_example.html
    incubator/xap/trunk/WebContent/examples/dataBinding/simpleDocumentDatasource_0.html
    incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.html
    incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal
    incubator/xap/trunk/WebContent/examples/demo/table.html
    incubator/xap/trunk/WebContent/examples/helloWorld/index.html
    incubator/xap/trunk/WebContent/examples/helloWorld/index.xal
    incubator/xap/trunk/WebContent/examples/html-xmodify/index.html

Modified: incubator/xap/trunk/WebContent/examples/componentEvents/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/componentEvents/index.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/componentEvents/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/componentEvents/index.html Thu Nov  2 14:23:16 2006
@@ -11,17 +11,12 @@
 	<script language="JavaScript" type="text/javascript" src="../../zimbra.js"></script>
 	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
 	<script language="JavaScript" type="text/javascript" src="./EventReflector.js"></script>
-	<script language="JavaScript" type="text/javascript">
-		Xap.bootstrap( "../../" );
-	</script>
 </head>
 
 <body onload="launch();">
 	<script language="JavaScript" type="text/javascript">
 		function launch() {
-			// required for Zimbra
-			DBG = new AjxDebug( AjxDebug.NONE, null, false );
-			Xap.createSession( "../../", "index.xal" );
+			Xap.createApplication();
 		}
 	</script>
 </body>

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/decimalFormatter.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/decimalFormatter.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/decimalFormatter.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/decimalFormatter.html Thu Nov  2 14:23:16 2006
@@ -4,72 +4,24 @@
 		<title>Testing the decimal formatter:</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
-
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
+	
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
 
 		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-		<!--  No longer need this---now grabs JS source using source object's 'uri' attribute: -->
-		<!--  script language="JavaScript" type="text/javascript" src="Employees.js"></script -->
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <!--  script language="JavaScript" type="text/javascript">
-
-    	Xap._sourceRootDir = "../../" ; 
-    		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.JsonDataSourceBridge",							
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.controller.Binding",							
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.JsonDataSource",
-							"xap.data.datasource.JavascriptDataSource",
-							"xap.data.formatter.JsFormatterImpl",
-							"xap.data.formatter.DecimalFormatter",
-							"xap.data.bridge.FormatterBridge",							
-							"xap.data.bridge.DecimalFormatterBridge",														
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.xml.dom.Document",
-							"xap.Xap"																							
-							) ;	
-		Xap._loadDebuggables() ;
-							
-	</script -->							
-
 	</head>
 
-	<body onload="Xap.createAllPredefinedSessions();">	
+	<body onload="Xap.createEmbeddedApplications();">	
 		<h3>Testing the decimal formatter and bridge:</h3>
-		<div style="left:100px;top:100px" xapId="DecimalFormatterExample" xapSrc="decimalFormatter.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="decimalFormatter.xal"></div>
 
 		<div >
 			(see <a href="decimalFormatter.xal">decimalFormatter.xal</a>, <a href="Employees_json.js">Employees_json.js</a>.)

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/formatterChain.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/formatterChain.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/formatterChain.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/formatterChain.html Thu Nov  2 14:23:16 2006
@@ -6,78 +6,25 @@
 		</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
-
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
+	
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
-
-	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-	<!-- For MCO code -->
-	<script language="JavaScript" type="text/javascript" src="Layout.js"> </script>	
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <!--  script language="JavaScript" type="text/javascript">
-    	Xap._sourceRootDir = "../../" ; 	
-		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.FormatterBridge",
-							"xap.data.bridge.DecimalFormatterBridge",							
-							"xap.data.bridge.FormatterChainBridge",							
-							"xap.data.bridge.JavascriptDataSourceBridge",
-							"xap.data.bridge.JsonDataSourceBridge",														
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.controller.Binding",							
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.JavascriptDataSource",
-							"xap.data.datasource.JsonDataSource",							
-							"xap.data.datasource.SimpleDocumentDataSource",							
-							"xap.data.formatter.MessageFormatter",
-							"xap.data.formatter.DecimalFormatter",
-							"xap.data.formatter.FormatterChain",														
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.util.MessageFormat",
-							"xap.xml.dom.Document"
-																						
-							) ;
-		Xap._loadDebuggables() ;
-	</script -->	
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
 	
-	<!--Needed for the mco tag in the xal file:  -->
-	<script language="JavaScript" src="Layout.js"> </script>						
-
+		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+		<!-- For MCO code -->
+		<script language="JavaScript" type="text/javascript" src="Layout.js"> </script>	
 	</head>
-
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		<h3>Testing chained formatters on data from a JSON document:</h3>
-		<div style="left:100px;top:100px" xapId="ChainFmtExample" xapSrc="formatterChain.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="formatterChain.xal"></div>
 		<div top="380px">
 			(see <a href="formatterChain.xal">formatterChain.xal</a>, <a href="EmployeesArrays_json.js">EmployeesArrays_json.js</a>.)
 		</div>		

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/index.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/index.html Thu Nov  2 14:23:16 2006
@@ -28,6 +28,12 @@
 				<li>
 					<a href="./javascriptDatasource.html">Employee data from a generalised javascript data source, using a scriptlet "query" and iterator macros.</a>
 				</li>
+				<li>
+					<a href="./nestedIterators.html">Nested Iterators.</a>
+				</li>
+				<li>
+					<a href="./rss_example.html">RSS Example.</a>
+				</li>
 				
 			</ul> Formatters: testing...
 			<ul>

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/javascriptDatasource.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/javascriptDatasource.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/javascriptDatasource.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/javascriptDatasource.html Thu Nov  2 14:23:16 2006
@@ -4,67 +4,24 @@
 		<title>Getting data from a javascript data source:</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
-
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
+	
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
 
 		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
 		<script language="JavaScript" type="text/javascript" src="Layout.js"></script>		
-		<!--  No longer need this---now grabs JS source using source object's 'path' attribute: -->
-		<!--  script language="JavaScript" type="text/javascript" src="Employees.js"></script -->
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <script language="JavaScript" type="text/javascript">
-
-    	Xap._sourceRootDir = "../../" ; 	
-		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.JavascriptDataSourceBridge",							
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.JavascriptDataSource",
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.xml.dom.Document",
-							"xap.xml.sax.SaxParser",
-							"xap.Xap"																							
-							) ;
-		Xap._loadDebuggables() ;
-							
-	</script>							
-
 	</head>
 
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		<h3>Iterating over an object from a complicated, non-JSON, Javascript expression:</h3>
-		<div style="left:100px;top:100px" xapId="JsdsExample" xapSrc="javascriptDatasource.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="javascriptDatasource.xal"></div>
 	</body>
 </html>

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.html Thu Nov  2 14:23:16 2006
@@ -4,67 +4,24 @@
 		<title>Iterating over data from a JSON-compliant data source:</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
-
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
+	
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
 
 		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-		<!--  No longer need this---now grabs JS source using source object's 'uri' attribute: -->
-		<!--  script language="JavaScript" type="text/javascript" src="Employees.js"></script -->
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <!-- script language="JavaScript" type="text/javascript">
-
-    	Xap._sourceRootDir = "../../" ; 
-    		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.JsonDataSourceBridge",							
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.JsonDataSource",
-							"xap.data.datasource.JavascriptDataSource",							
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.xml.dom.Document",
-							"xap.Xap"																							
-							) ;	
-		Xap._loadDebuggables() ;
-							
-	</script -->							
-
 	</head>
 
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		<h3>Iterating over data from a JSON-encoded object:</h3>
-		<div style="left:100px;top:100px" xapId="JsonExample" xapSrc="jsonDatasource.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="jsonDatasource.xal"></div>
 
 		<div >
 			(see <a href="jsonDatasource.xal">jsonDatasource.xal</a>, <a href="Employees_json.js">Employees_json.js</a>.)

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.xal?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.xal (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/jsonDatasource.xal Thu Nov  2 14:23:16 2006
@@ -9,41 +9,24 @@
 		xmlns="http://www.openxal.org/data"
 		id="myDataSource"
 		path="Employees_json.js"
-		source="employees"
-	/>	
-	
-
-	
+		source="employees"/>	
+		
 	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
 	<xm:append select="/xal">
 
 		<xal:table id="testComponent" width="540px" height="300px">
 			
-			<xal:row>
-				<xal:cell width="180px" text="i.d." fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
-				<xal:cell width="180px" text="Last name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
-				<xal:cell width="180px" text="First name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
-			</xal:row>
+				<xal:column>
+					<xal:header width="120px" text="i.d." fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
+				</xal:column>
+				<xal:column>
+					<xal:header width="180px" text="Last name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
+				</xal:column>
+				<xal:column>
+					<xal:header width="180px" text="First name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
+				</xal:column>
 			
-			<!-- Setting cell widths doesn't seem to work as well as this: -->
-			<xal:column>
-				<xal:header width="180px" height="-5px" />
-			</xal:column>
-			<xal:column>
-				<xal:header width="180px" height="-5px" />
-			</xal:column>						
-			<xal:column>
-				<xal:header width="180px" height="-5px" />
-			</xal:column>			
-					
-		
-			<xal:row>
-				<xal:cell width="180px" />					
-				<xal:cell width="180px" />
-				<xal:cell width="180px" />
-			</xal:row>
-		
-<!-- Iterator -->
+		<!-- Iterator -->
 			<iterator 
 				xmlns="http://www.openxal.org/data" 
 				name="anIterator" 

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/mcoAttribute.html Thu Nov  2 14:23:16 2006
@@ -1,31 +1,26 @@
 <html>
-<head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <title>Getting an attribute from an MCO method:</title>
-
-	<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
-    
-	<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
-	<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>    
+	<head>
+	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+	    <title>Getting an attribute from an MCO method:</title>
 	
-   <script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-   <script language="JavaScript" type="text/javascript" src="AttributeGetter.js"></script>
-   <script language="JavaScript" type="text/javascript" src="../../src/ResolutionHandler.js"></script>
-   <script language="JavaScript" type="text/javascript" src="../../src/bridges/xap/LabelBridge.js"></script>   
-   
-    
-   <script language="JavaScript" src="../../src/xml/sax/SaxParser"> </script>
-</head>
-  
- <body  onload="Xap.createAllPredefinedSessions();">
-	<div style="left:100px;top:100px" xapId="McoAttributeExample" xapSrc="mcoAttribute.xal" xapToolkit="dojo" xapContext="../../"></div>
-</body>
+		<style type="text/css">
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
+	    
+		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
+		<script type="text/javascript">
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>    
+		
+	   	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+	   	<script language="JavaScript" type="text/javascript" src="AttributeGetter.js"></script>   
+	</head>
+	  
+ 	<body onload="Xap.createEmbeddedApplications();">
+		<div style="left:100px;top:100px" startPage="mcoAttribute.xal"></div>
+	</body>
 </html>

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter.html Thu Nov  2 14:23:16 2006
@@ -8,74 +8,26 @@
 		</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
 
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
-
-	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-	<!-- For MCO code -->
-	<script language="JavaScript" type="text/javascript" src="Layout.js"> </script>	
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <!--  script language="JavaScript" type="text/javascript">
-    	Xap._sourceRootDir = "../../" ; 	
-		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.FormatterBridge",
-							"xap.data.bridge.JavascriptDataSourceBridge",
-							"xap.data.bridge.JsonDataSourceBridge",														
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.controller.Binding",							
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.JavascriptDataSource",
-							"xap.data.datasource.JsonDataSource",							
-							"xap.data.datasource.SimpleDocumentDataSource",							
-							"xap.data.formatter.MessageFormatter",
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.util.MessageFormat",
-							"xap.xml.dom.Document"
-																						
-							) ;
-		Xap._loadDebuggables() ;
-	</script -->	
-	
-	<!--Needed for the mco tag in the xal file:  -->
-	<script language="JavaScript" src="Layout.js"> </script>						
-
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
+
+		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+		<!-- For MCO code -->
+		<script language="JavaScript" type="text/javascript" src="Layout.js"> </script>	
 	</head>
 
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		<h3>Testing messageFormatter on employee data from a JSON document:</h3>
-		<div style="left:100px;top:100px" xapId="MfmtExample" xapSrc="messageFormatter.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="messageFormatter.xal"></div>
 		<div top="380px">
 			(see <a href="messageFormatter.xal">messageFormatter.xal</a>, <a href="EmployeesArrays_json.js">EmployeesArrays_json.js</a>.)
 		</div>		

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter_altSyntax.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter_altSyntax.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter_altSyntax.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/messageFormatter_altSyntax.html Thu Nov  2 14:23:16 2006
@@ -9,76 +9,29 @@
 		</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
 
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
 		djConfig = {
 			parseWidgets: false
 		};
-	</script>
-
-	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-	<!-- For MCO code -->
-	<script language="JavaScript" type="text/javascript" src="Layout.js"> </script>	
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <!--  script language="JavaScript" type="text/javascript">
-    	Xap._sourceRootDir = "../../" ; 	
-		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.FormatterBridge",
-							"xap.data.bridge.JavascriptDataSourceBridge",
-							"xap.data.bridge.JsonDataSourceBridge",														
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.controller.Binding",							
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.JavascriptDataSource",
-							"xap.data.datasource.JsonDataSource",							
-							"xap.data.datasource.SimpleDocumentDataSource",							
-							"xap.data.formatter.MessageFormatter",
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.util.MessageFormat",
-							"xap.xml.dom.Document"
-																						
-							) ;
-		Xap._loadDebuggables() ;
-	</script  -->	
+		</script>
 	
-	<!--Needed for the mco tag in the xal file:  -->
-	<script language="JavaScript" src="Layout.js"> </script>						
+		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+		<!-- For MCO code -->
+		<script language="JavaScript" type="text/javascript" src="Layout.js"> </script>	
 
 	</head>
 
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		<h3>Testing messageFormatter and the <br/>
 			<code><font size="+1">bind('select=...;formatter=...')</font></code><br/>
 			syntax on data from a JSON document:</h3>
-		<div style="left:100px;top:100px" xapId="Mfmt_altExample" xapSrc="messageFormatter_altSyntax.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="messageFormatter_altSyntax.xal"></div>
 		<div top="380px">
 			(see <a href="messageFormatter_altSyntax.xal">messageFormatter_altSyntax.xal</a>, <a href="EmployeesArrays_json.js">EmployeesArrays_json.js</a>.)
 		</div>		

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/nestedIterators.html Thu Nov  2 14:23:16 2006
@@ -4,69 +4,23 @@
 		<title>Nested iterators:</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
 
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
 
 		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-		<!--  No longer need this---now grabs JS source using source object's 'path' attribute: -->
-		<!--  script language="JavaScript" type="text/javascript" src="Employees.js"></script -->
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <script language="JavaScript" type="text/javascript">
-
-    	Xap._sourceRootDir = "../../" ; 	
-		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.IteratorBridge",							
-							"xap.data.bridge.SimpleDocumentDataSourceBridge",							
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.controller.Binding",							
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.SimpleDocumentDataSource",
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.util.Vector",
-							"xap.xml.dom.Document",
-							"xap.xml.dom.XapElement",							
-							"xap.Xap"																							
-							) ;
-		Xap._loadDebuggables() ;
-							
-	</script>							
-
 	</head>
 
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		<h3>Nested iterators over an XML data set:</h3>
-		<div style="left:100px;top:100px" xapId="NestedItsExample" xapSrc="nestedIterators.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="nestedIterators.xal"></div>
 	</body>
 </html>

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/rss_example.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/rss_example.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/rss_example.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/rss_example.html Thu Nov  2 14:23:16 2006
@@ -4,69 +4,23 @@
 		<title>RSS feed: WFMU programming</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
 
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
 
 		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-		<!--  No longer need this---now grabs JS source using source object's 'path' attribute: -->
-		<!--  script language="JavaScript" type="text/javascript" src="Employees.js"></script -->
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <script language="JavaScript" type="text/javascript">
-
-    	Xap._sourceRootDir = "../../" ; 	
-		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.IteratorBridge",							
-							"xap.data.bridge.SimpleDocumentDataSourceBridge",							
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.controller.Binding",							
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.SimpleDocumentDataSource",
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.util.Vector",
-							"xap.xml.dom.Document",
-							"xap.xml.dom.XapElement",							
-							"xap.Xap"																							
-							) ;
-		Xap._loadDebuggables() ;
-							
-	</script>							
-
 	</head>
 
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		<div id="titleDisplay"></div>
-		<div style="left:100px;top:100px" xapId="RssExample" xapSrc="rss_example.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="rss_example.xal"></div>
 	</body>
 </html>

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/simpleDocumentDatasource_0.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/simpleDocumentDatasource_0.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/simpleDocumentDatasource_0.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/simpleDocumentDatasource_0.html Thu Nov  2 14:23:16 2006
@@ -3,60 +3,21 @@
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 		<title>Iterating over H.R. data from an XML document data source:</title>
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
-	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-<!--
-Remove debugging in a final check, since debugging's
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-    <!--  script language="JavaScript" type="text/javascript">
-
-    	Xap._sourceRootDir = "../../" ;
-		Xap.addDebuggables(
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.JavascriptDataSourceBridge",
-							"xap.data.bridge.SimpleDocumentDataSourceBridge",
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",
-							"xap.data.controller.Iterator",
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.JavascriptDataSource",
-							"xap.data.datasource.SimpleDocumentDataSource",
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",
-							"xap.taghandling.AttributeConverter",
-							"xap.xml.dom.Document"
-							) ;
-		Xap._loadDebuggables() ;
-
-	</script -->
-	<script language="JavaScript" src="Layout.js"> </script>
-	
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
+		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+		<script language="JavaScript" src="Layout.js"> </script>
 	</head>
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		(See <a href="simpleDocumentDatasource.xal">simpleDocumentDatasource_0.xal</a>, <a href="employees.xml">translator.xml</a>.)
-		<div style="left:100px;top:100px" xapId="SddsExample" xapSrc="simpleDocumentDatasource_0.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px" startPage="simpleDocumentDatasource_0.xal"></div>
 	</body>
 </html>

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.html (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.html Thu Nov  2 14:23:16 2006
@@ -4,68 +4,26 @@
 		<title>Iterating over records from an XML document data source:</title>
 
 		<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
+	      <!--
+	          @import url(../../css/xapDefault.css);
+	      -->
+	    </style>
 
 		<!-- Keep dojo from trying to scan this whole page for dojoType'd tags: -->
 		<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>
-
-	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-	<!-- For MCO code -->
-	<script language="JavaScript" type="text/javascript" src="Layout.js"> </script>	
-
-<!--  
-Remove debugging in a final check, since debugging's 
-alternate loading method (using <script/> tags) can
-mask forgetting a .require(<className>) in the code:
--->
-
-    <!--  script language="JavaScript" type="text/javascript">
-    	Xap._sourceRootDir = "../../" ; 	
-		Xap.addDebuggables(		
-							"xap.data.DataFramework",
-							"xap.data.DataServiceFactory",
-							"xap.data.DataServiceImpl",
-							"xap.data.bridge.DataAttributeConverter",
-							"xap.data.bridge.DataFrameworkBridge",
-							"xap.data.bridge.DataSourceBridge",
-							"xap.data.bridge.JavascriptDataSourceBridge",
-							"xap.data.bridge.SimpleDocumentDataSourceBridge",														
-							"xap.data.bridge.ObjectDataSourceBridge",
-							"xap.data.controller.ContextFrame",		
-							"xap.data.controller.Iterator",
-							"xap.data.datasource.AbstractDataSet",
-							"xap.data.datasource.AbstractDataSource",							
-							"xap.data.datasource.ArrayDataSet",
-							"xap.data.datasource.DataSetFactory",						
-							"xap.data.datasource.DataSourceContainerImpl",
-							"xap.data.datasource.DataSourceImpl",
-							"xap.data.datasource.JavascriptDataSource",
-							"xap.data.datasource.SimpleDocumentDataSource",							
-							"xap.resolver.AttributeResolutionHandler",
-							"xap.session.ClientSession",
-							"xap.session.DeclarativeArgumentParser",
-							"xap.taghandling.AbstractTagImpl",							
-							"xap.taghandling.AttributeConverter",
-							"xap.xml.dom.Document"																							
-							) ;
-		Xap._loadDebuggables() ;
-	</script -->	
-	
-	<!--Needed for the mco tag in the xal file:  -->
-	<script language="JavaScript" src="Layout.js"> </script>						
-
+			djConfig = {
+				parseWidgets: false
+			};
+		</script>
+
+		<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
+		<!-- For MCO code -->
+		<script language="JavaScript" type="text/javascript" src="Layout.js"> </script>	
 	</head>
 
-	<body onload="Xap.createAllPredefinedSessions();">
+	<body onload="Xap.createEmbeddedApplications();">
 		<h3>Employee data from an XML document:</h3>
-		<div style="left:100px;top:100px" xapId="SddsExample" xapSrc="simpleEmployees.xal" xapToolkit="dojo" xapContext="../../"></div>
+		<div style="left:100px;top:100px"  startPage="simpleEmployees.xal"></div>
 		<div top="380px">
 			(see <a href="simpleEmployees.xal">simpleEmployees.xal</a>, <a href="employees.xml">employees.xml</a>.)
 		</div>		

Modified: incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal (original)
+++ incubator/xap/trunk/WebContent/examples/dataBinding/simpleEmployees.xal Thu Nov  2 14:23:16 2006
@@ -21,30 +21,20 @@
 
 			<xal:table id="testComponent" width="750px" height="400px">
 			
-				<xal:row>
-					<xal:cell width="60px" text="i.d." fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
-					<xal:cell width="180px" text="Last name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
-					<xal:cell width="180px" text="First name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
-					<xal:cell width="180px" text="Middle name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
-				</xal:row>
-				
-				<!-- Setting cell widths doesn't seem to work as well as this: -->
 				<xal:column>
-					<xal:header width="60px" height="-5px" />
+					<xal:header width="60px" text="i.d." fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
 				</xal:column>
 				<xal:column>
-					<xal:header width="180px" height="-5px" />
-				</xal:column>						
+					<xal:header width="180px" text="Last name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
+				</xal:column>
 				<xal:column>
-					<xal:header width="180px" height="-5px" />
-				</xal:column>	
+					<xal:header width="180px" text="First name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
+				</xal:column>
 				<xal:column>
-					<xal:header width="180px" height="-5px" />
-				</xal:column>								
-			
-
-
-
+					<xal:header width="180px" text="Middle name" fontWeight="bolder" fontFamily="Garamond" fontSize="11pt"/>
+				</xal:column>
+										
+		
 				<!-- Iterator -->
 				<iterator xmlns="http://www.openxal.org/data" name="anIterator" dataSource="myDataSource" select="//employee" type="ONE_TIME">
 

Modified: incubator/xap/trunk/WebContent/examples/demo/table.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/demo/table.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/demo/table.html (original)
+++ incubator/xap/trunk/WebContent/examples/demo/table.html Thu Nov  2 14:23:16 2006
@@ -17,11 +17,10 @@
 		};
 	</script>    
 	
-	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-    
+	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>   
  </head>
   
- <body onload="Xap.createAllPredefinedSessions()">
-	<div xapId="ButtonExample" xapSrc="table.xal" xapToolkit="dojo" xapContext="../../"></div>
+ <body onload="Xap.createEmbeddedApplications();">
+	<div startPage="table.xal"></div>
 </body>
 </html>

Modified: incubator/xap/trunk/WebContent/examples/helloWorld/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/helloWorld/index.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/helloWorld/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/helloWorld/index.html Thu Nov  2 14:23:16 2006
@@ -1,26 +1,26 @@
 <html>
-<head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <title>Hello World</title>
-
-	<style type="text/css">
-      <!--
-          @import url(../../css/xapDefault.css);
-      -->
-    </style>
-
-	<script type="text/javascript">
-		djConfig = {
-			parseWidgets: false
-		};
-	</script>    
-	
-	<script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-    
- </head>
-  
- <body onload="Xap.createAllPredefinedSessions()">
-	<div xapId="HelloWorldExample" xapSrc="index.xal" xapToolkit="dojo" xapContext="../../"></div>
-</body>
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+		<title>Hello World</title>
+		
+		<style type="text/css">
+		      <!--
+		          @import url(../../css/xapDefault.css);
+		      -->
+		</style>
+		
+		<script type="text/javascript">
+				djConfig = {
+					parseWidgets: false
+				};
+		</script>
+		
+		<script language="JavaScript" type="text/javascript"
+			src="../../xapcore.js"></script>
+		
+	</head>
+	<body onload="Xap.createEmbeddedApplications();">
+		<div startPage="index.xal"></div>
+	</body>
 </html>
 

Modified: incubator/xap/trunk/WebContent/examples/helloWorld/index.xal
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/helloWorld/index.xal?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/helloWorld/index.xal (original)
+++ incubator/xap/trunk/WebContent/examples/helloWorld/index.xal Thu Nov  2 14:23:16 2006
@@ -1,17 +1,7 @@
-<xal xmlns="http://www.openxal.org/xal" xmlns:dojo="http://www.dojotoolkit.org/"> 
-
-
-
-
+<xal xmlns="http://www.openxal.org/xal"> 
 	<xm:modifications xmlns:xm="http://www.openxal.org/xmodify">
-	<xm:append select="/xal">
-	
-
-	
-
-	  <label id="testComponent" width="400px" height="100px" alignHorizontal="center" alignVertical="top" text="Hello World" textPlacementHorizontal="right" textPlacementVertical="top" />
-	
-		
-	</xm:append> 	  		
+		<xm:append select="/xal">
+		  <label text="Hello World" width="100%"/>
+		</xm:append> 	  		
   	</xm:modifications>
 </xal>

Modified: incubator/xap/trunk/WebContent/examples/html-xmodify/index.html
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/html-xmodify/index.html?view=diff&rev=470566&r1=470565&r2=470566
==============================================================================
--- incubator/xap/trunk/WebContent/examples/html-xmodify/index.html (original)
+++ incubator/xap/trunk/WebContent/examples/html-xmodify/index.html Thu Nov  2 14:23:16 2006
@@ -8,28 +8,27 @@
           @import url(../../css/xapDefault.css);
       -->
     </style>
-    <script language="JavaScript" type="text/javascript" src="../../zimbra.js"></script>
     <script language="JavaScript" type="text/javascript" src="../../xapcore.js"></script>
-    <script language="JavaScript" type="text/javascript">
-    	Xap.bootstrap( "../../" );
-  	</script>
  </head>
 
 <body onload="launch();">
     <script language="JavaScript" type="text/javascript">
     
-    var clientSession = null;
+    var myApp = null;
     
-    function launch() {
- 		// required for Zimbra
-		DBG = new AjxDebug( AjxDebug.NONE, null, false );
- 		clientSession = Xap.createSession("../../", "index.xal" );
-	}
+    function launch() {	    
+		var myApplicationConfig = {
+			toolkitType: "dojo",
+			startPage: "index.xal"
+		};
+ 		myApp = Xap.createApplication(myApplicationConfig);	
+	}	
 	
 	function handleMacro(macroName){
-		clientSession.getMacroContainer().get(macroName).execute();	
+		myApp.fireEvent("macro:"+macroName+".execute()");		
 	}
 	
 	</script>
+	<table><tr><td>SDSDSD</td></tr></table>
 </body>
 </html>



Mime
View raw message