summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite5
-rw-r--r--sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html8
2 files changed, 4 insertions, 9 deletions
diff --git a/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite b/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
index 7d340bebba..2fa83b7a3b 100644
--- a/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
+++ b/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
@@ -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>
diff --git a/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html b/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html
index 88bad8ed1f..9aad807887 100644
--- a/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html
+++ b/sandbox/travelsample/ui-contribution-webapp/src/main/webapp/scatours.html
@@ -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;