tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r681684 - in /tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp: META-INF/sca-deployables/scatours.composite scatours.html
Date Fri, 01 Aug 2008 13:06:57 GMT
Author: antelder
Date: Fri Aug  1 06:06:57 2008
New Revision: 681684

URL: http://svn.apache.org/viewvc?rev=681684&view=rev
Log:
Update to use implementation.web

Modified:
    tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
    tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html

Modified: tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite?rev=681684&r1=681683&r2=681684&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
(original)
+++ tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
Fri Aug  1 06:06:57 2008
@@ -24,10 +24,7 @@
            name="scatours">
            
     <component name="SCATours">
-        <tuscany:implementation.widget location="scatours.html"/>
-        <service name="Widget">
-            <tuscany:binding.http uri="/scatours"/>
-        </service>
+        <implementation.web web-uri=""/>
         <reference name="hotel" target="HotelComponent">
             <tuscany:binding.jsonrpc/>
         </reference>

Modified: tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html
URL: http://svn.apache.org/viewvc/tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html?rev=681684&r1=681683&r2=681684&view=diff
==============================================================================
--- tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html (original)
+++ tuscany/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html Fri
Aug  1 06:06:57 2008
@@ -22,15 +22,13 @@
 
 <link rel="stylesheet" type="text/css" href="style.css" />
 
-<script type="text/javascript" src="scatours.js"></script>
+<script type="text/javascript" src="org.apache.tuscany.sca.componentContext.js"></script>
 
 <script language="JavaScript">
 
-	//@Reference
-	var hotel = new Reference("hotel");
+    var hotel = componentContext.getService("hotel");
 	
-    //@Reference
-    var trip = new Reference("trip");
+    var trip = componentContext.getService("trip");
     
     //local state
     var hotels;



Mime
View raw message