summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-01-24 14:54:37 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-01-24 14:54:37 +0000
commitf875ca919485ba5a1195f27d56537551a54b89ef (patch)
tree92c87dadfd0f410f7ff2879741045b0019233d62 /sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src
parent3b66a3aca132f59e9e2fcaf3ee7f4f53096d4d55 (diff)
Contrib holds material that's no longer used in the same. Don't need it in trunk but it's still in the sandbox if you really need anything from here.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@902577 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite62
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml41
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html143
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odgbin11477 -> 0 bytes
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.pngbin11061 -> 0 bytes
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css135
6 files changed, 0 insertions, 381 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
deleted file mode 100644
index 2fa83b7a3b..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
- targetNamespace="http://scatours"
- xmlns:scatours="http://scatours"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
- name="scatours">
-
- <component name="SCATours">
- <implementation.web web-uri=""/>
- <reference name="hotel" target="HotelComponent">
- <tuscany:binding.jsonrpc/>
- </reference>
- <reference name="trip" target="TripComponent">
- <tuscany:binding.jsonrpc/>
- </reference>
- </component>
-
- <component name="TripComponent">
- <implementation.java class="scatours.trip.TripImpl"/>
- <service name="Trip">
- <tuscany:binding.jsonrpc/>
- </service>
- <reference name="hotelSearch" target="HotelComponent">
- <binding.sca/>
- </reference>
- <reference name="currencyConverter" target="CurrencyConverterComponent">
- </reference>
- </component>
-
- <component name="HotelComponent">
- <implementation.java class="scatours.hotel.HotelImpl"/>
- <service name="Search">
- <binding.sca/>
- <tuscany:binding.jsonrpc/>
- </service>
- </component>
-
- <component name="CurrencyConverterComponent">
- <implementation.java class="scatours.currencyconverter.CurrencyConverterImpl"/>
- <service name="CurrencyConverter">
- </service>
- </component>
-
-</composite>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml
deleted file mode 100644
index 3f833b6856..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
-Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
-<web-app>
-
- <display-name>Apache Tuscany SCA Tours User Interface Webapp</display-name>
-
- <filter>
- <filter-name>tuscany</filter-name>
- <filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class>
- </filter>
-
- <filter-mapping>
- <filter-name>tuscany</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
-
- <welcome-file-list id="WelcomeFileList">
- <welcome-file>scatours.html</welcome-file>
- </welcome-file-list>
-
-</web-app>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html
deleted file mode 100644
index 9aad807887..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html
+++ /dev/null
@@ -1,143 +0,0 @@
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<html>
-<head>
-<title>SCA Tours</title>
-
-<link rel="stylesheet" type="text/css" href="style.css" />
-
-<script type="text/javascript" src="org.apache.tuscany.sca.componentContext.js"></script>
-
-<script language="JavaScript">
-
- var hotel = componentContext.getService("hotel");
-
- var trip = componentContext.getService("trip");
-
- //local state
- var hotels;
- var flights;
- var cars;
-
- //the constructor for trip leg beans
- function TripLegType(id,
- fromLocation,
- toLocation,
- fromDate,
- toDate,
- noOfPeople) {
- this.id = id;
- this.fromLocation = fromLocation;
- this.toLocation = toLocation;
- this.fromDate = fromDate;
- this.toDate = toDate;
- this.noOfPeople = noOfPeople;
- }
-
- function getTripLeg(){
- return new TripLegType("X",
- document.searchForm.fromLocation.value,
- document.searchForm.toLocation.value,
- document.searchForm.fromDate.value,
- document.searchForm.toDate.value,
- document.searchForm.noOfPeople.value);
- }
-
- function init() {
- try {
-
- }
- catch(e) {
- alert(e);
- }
- }
-
- function searchHotels() {
- hotel.searchSynch(getTripLeg(), search_response);
- }
-
- function searchTrip() {
- trip.search(getTripLeg(), search_response);
- }
-
- function search_response(items, exception) {
- if(exception){
- alert(exception.javaStack);
- return;
- }
- var hotelsHTML = "";
- for (var i=0; i<items.length; i++) {
- var item = items[i].name + ' - ' + items[i].description;
- hotelsHTML += '<input name="items" type="checkbox" value="' +
- item + '">' + item + ' <br>';
- }
- document.getElementById('searchResponse').innerHTML = hotelsHTML;
- hotels = items;
- }
-
-</script>
-
-</head>
-
-<body onload="init()" background="">
- <img src="scatours.png" border="0" />
- <div id="scatours">
- <br>
- <form name="searchForm">
- <table border="0">
- <tr>
- <td>From Location:</td>
- <td><input type="text" name="fromLocation" value="LGW"></td>
- <td>To Location:</td>
- <td><input type="text" name="toLocation" value="ANU"></td>
- </tr>
- <tr>
- <td>Start Date:</td>
- <td><input type="text" name="fromDate" value="06/12/08"></td>
- <td>End Date:</td>
- <td><input type="text" name="toDate" value="06/12/08"></td>
- </tr>
- <tr>
- <td>Number of people:</td>
- <td><select name="noOfPeople">
- <option>1
- <option selected>2
- <option>3
- <option>4
- </select></td>
- <td/>
- <td/>
- </tr>
- </table>
- <input type="button" onClick="searchHotels()" value="SearchHotels">
- <input type="button" onClick="searchTrip()" value="SearchTrip">
- </form>
- <div id="searchResponse"></div>
- <br>
- <form name="tripForm">
- <input type="button" onClick="bookTrip()" value="BookTrip">
- </form>
- <br>
- <div id="trip"></div>
- <br>
- <div id="total"></div>
- </div>
-
-</body>
-</html>
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg
deleted file mode 100644
index 8ca8fbf133..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg
+++ /dev/null
Binary files differ
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png
deleted file mode 100644
index f68cd84704..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png
+++ /dev/null
Binary files differ
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css
deleted file mode 100644
index 6e17c2747b..0000000000
--- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css
+++ /dev/null
@@ -1,135 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-
-
-/*******************************************/
-
-p,table,li,h1,h2,h3
-{
-font-family: verdana, arial, 'sans serif';
-}
-
-p, h1, h2, h3, table, li, hr
-{
-margin-left: 10pt;
-}
-
-table
-{
-border-color: black;
-border-collapse: separate;
-border-spacing: 0px 1px;
-
-margin-right: 10pt;
-margin-left: 10pt;
-width: 800px;
-}
-
-.sourceDetailsTable
-{
-width: 600px;
-}
-
-tr, td
-{
-margin-left: 0pt;
-margin-right: 0pt;
-padding-left: 10pt;
-font-size: 90%;
-}
-
-p,li,th
-{
-font-size: 90%;
-margin-left: 10pt;
-}
-
-pre
-{
-margin-left: 10pt;
-}
-
-body
-{
-#ffffff;
-}
-
-h1,h2,h3,hr
-{
-color: firebrick;
-}
-
-a:link {COLOR: firebrick;}
-a:visited {COLOR: firebrick;}
-a:active {COLOR: navy;}
-
-.link
-{
-COLOR: firebrick;
-text-decoration: underline;
-}
-
-.clickable
-{
-cursor: pointer
-}
-
-.unread_title
-{
-font-weight: bold;
-}
-
-.read_title
-{
-font-weight: normal;
-}
-
-.summary
-{
-color: DimGrey;
-}
-
-.hidden
-{
-display: none;
-}
-
-.source_name
-{
-width: 600px;
-}
-
-.alert_text
-{
-width: 600px;
-}
-
-.alert_data
-{
-margin-left: 10px;
-width: 800px;
-height: 800px;
-}
-
-.source_0
-{
-background-color: LightGreen;
-}
-