You are viewing a plain text version of this content. The canonical link for it is here.
Posted to stonehenge-commits@incubator.apache.org by be...@apache.org on 2009/09/05 16:41:19 UTC
svn commit: r811675 [9/9] - in /incubator/stonehenge/trunk: ./
stocktrader/metro/ stocktrader/metro/business_service/
stocktrader/metro/business_service/etc/
stocktrader/metro/business_service/src/
stocktrader/metro/business_service/src/org/ stocktrade...
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/home.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/home.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/home.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/home.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,170 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:s="http://stonehenge.apache.com/jsf">
+<body>
+<ui:composition template="/template.xhtml">
+ <ui:define name="title">
+ Home
+ </ui:define>
+ <ui:define name="body">
+ <h3><h:outputText value="Welcome #{userBean.currentUserName}" /></h3>
+
+ <table>
+ <tr>
+ <td>
+ <div class="left">
+ <table class="normal">
+ <thead>
+ <tr>
+ <th colspan="2">User Statistics</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td class="left">Account ID:</td>
+ <td><h:outputText value="#{userBean.accountID}" /></td>
+ </tr>
+ <tr>
+ <td class="left">Account Created:</td>
+ <td><h:outputText value="#{userBean.creationDate}" /></td>
+ </tr>
+ <tr>
+ <td class="left">Total Logins:</td>
+ <td><h:outputText value="#{userBean.loginCount}" /></td>
+ </tr>
+ <tr>
+ <td class="left">Session Created:</td>
+ <td><h:outputText value="#{userBean.lastLoginDate}" /></td>
+ </tr>
+ </tbody>
+ <thead>
+ <tr>
+ <th colspan="2">Summary</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td class="left">Cash Balance:</td>
+ <td><h:outputText value="#{userBean.balance}" /></td>
+ </tr>
+
+ <tr>
+ <td class="left">Number of Holdings:</td>
+ <td><h:outputText value="#{userBean.holdingInfo.noOfHoldings}" /></td>
+ </tr>
+
+ <tr>
+ <td class="left">Total of Holdings:</td>
+ <td><s:currency value="#{userBean.holdingInfo.totalHoldings}" /></td>
+ </tr>
+
+ <tr>
+ <td class="left">Sum of Cash and Holdings:</td>
+ <td><s:currency value="#{userBean.sumOfCashHolding}" /></td>
+ </tr>
+
+ <tr>
+ <td class="left">Opening Balance:</td>
+ <td><s:currency value="#{userBean.openBalance}" /></td>
+ </tr>
+
+ <tr>
+ <td class="left">Current Gain/(Loss):</td>
+ <td><span class="price"> <s:price
+ value = "#{userBean.currentGain}" /> </span></td>
+ </tr>
+
+ <tr>
+ <td class="left">%Gain/(Loss):</td>
+ <td><s:price value="#{userBean.gainPercent}"
+ displayValue="#{userBean.gainPercentString}" /></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </td>
+
+ <td>
+ <div class="right">
+ <h3>Market Summary</h3>
+ <p><script type="text/javascript">
+ document.writeln(new Date().toUTCString());
+</script></p>
+ <table class="table-outer" cellspacing="0">
+ <tr>
+ <td class="special">Trade Stock Index (TSIA)</td>
+ <td><h:outputText value="#{userBean.tradeStockIndex} " /> <s:price
+ value="#{userBean.currentGain}" /></td>
+ </tr>
+ <tr>
+ <td class="special">Trading Volume</td>
+ <td><h:outputText value="#{userBean.volume}" /></td>
+ </tr>
+ <tr>
+ <td class="special">Top Gainers</td>
+ <td>
+ <table class="table-inner" cellspacing="0">
+ <thead>
+ <tr>
+ <th>Symbol</th>
+ <th>Price</th>
+ <th>Change</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ui:repeat value="#{userBean.topGainers}" var="topGainer">
+ <tr>
+ <td>
+ <form action="quotes.faces" method="post"><input
+ type="hidden" name="SYMBOLS" value="#{topGainer.symbol}" />
+ <input type="submit" name="GETQUOTE"
+ value="#{topGainer.symbol}" /></form>
+ </td>
+ <td><h:outputText value="\$#{topGainer.price}" /></td>
+ <td><s:price value="#{topGainer.change}" /></td>
+ </tr>
+ </ui:repeat>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+
+
+ <tr>
+ <td class="special">Top Losers</td>
+ <td>
+ <table class="table-inner" cellspacing="0">
+ <thead>
+ <tr>
+ <th>Symbol</th>
+ <th>Price</th>
+ <th>Change</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ui:repeat var="topLoser" value="#{userBean.topLosers}">
+ <tr>
+ <td>
+ <form action="quotes.faces" method="post"><input
+ type="hidden" name="SYMBOLS" value="#{topLoser.symbol}" /> <input
+ type="submit" name="GETQUOTE" value="#{topLoser.symbol}" /></form>
+ </td>
+ <td><h:outputText value="\$#{topLoser.price}" /></td>
+ <td><s:price value="#{topLoser.change}"/></td>
+ </tr>
+ </ui:repeat>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </td>
+ </tr>
+ </table>
+ <ui:include src="getQuote.jsf"/>
+ </ui:define>
+</ui:composition>
+</body>
+</html>
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/bg.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/bg.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/bg.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/button-bg.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/button-bg.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/button-bg.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/favicon.ico
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/favicon.ico?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/favicon.ico
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/footer-bg.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/footer-bg.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/footer-bg.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/green-arrow.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/green-arrow.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/green-arrow.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-bg.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-bg.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-bg.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-link-bg-hover.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-link-bg-hover.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-link-bg-hover.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-link-bg.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-link-bg.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-link-bg.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-links-bg.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-links-bg.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/header-links-bg.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/logo.png
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/logo.png?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/logo.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/middle-bg.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/middle-bg.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/middle-bg.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/powered-by-logo.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/powered-by-logo.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/powered-by-logo.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/red-arrow.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/red-arrow.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/red-arrow.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/spinner.gif
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/spinner.gif?rev=811675&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/images/spinner.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/login.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/login.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/login.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/login.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,41 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<body>
+<ui:composition template="/template.xhtml">
+ <ui:define name="title">
+ Login
+</ui:define>
+ <ui:define name="body">
+ <div class="login">
+ <h:form>
+ <h:panelGrid columns="2">
+ <h:outputLabel for="userName">
+ <h:outputText value="Username"/>
+ </h:outputLabel>
+
+ <h:inputText id="userName" size="25" value="#{loginBean.username}"/>
+
+ <h:outputLabel for="password">
+ <h:outputText value="Password"/>
+ </h:outputLabel>
+
+ <h:inputSecret id="password" size="25" value="#{loginBean.password}"/>
+
+ <h:panelGroup/>
+ <h:commandButton title="submit" value="Submit" action="#{loginBean.login}"/>
+ </h:panelGrid>
+ </h:form>
+
+ <p>Try password "xxx" for user "uid:0" to access the stock trader web application.</p>
+
+ <p class="new-user">
+ <a href="./register.jsf">First time user?</a>
+ </p>
+ </div>
+ </ui:define>
+ </ui:composition>
+ </body>
+ </html>
+
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/newOrder.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/newOrder.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/newOrder.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/newOrder.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,54 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:s="http://stonehenge.apache.com/jsf">
+<body>
+<ui:composition template="/template.xhtml">
+ <ui:define name="title">
+ New Order
+ </ui:define>
+ <ui:define name="body">
+ <p align="center">
+ <h:outputFormat
+ value="Order {0, number, ##} to {1}.{2} shares of {3} has been submitted for processing.">
+ <f:param value="#{tradeBean.orderReturn.orderID}" />
+ <f:param value="#{tradeBean.orderReturn.quantity}" />
+ <f:param value="#{tradeBean.orderReturn.quantity}" />
+ <f:param value="#{tradeBean.orderReturn.symbol}" />
+ </h:outputFormat>
+ </p>
+ <p align="center">Order Details:</p>
+ <table class="table-outer" cellspacing="0" align="center">
+ <thead>
+ <tr>
+ <th>Order ID</th>
+ <th>Order Status</th>
+ <th>Creation Date</th>
+ <th>Completion Date</th>
+ <th>Txn Fee</th>
+ <th>Type</th>
+ <th>Symbol</th>
+ <th>Quantity</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><h:outputText value="#{tradeBean.orderReturn.orderID}" /></td>
+ <td><h:outputText value="#{tradeBean.orderReturn.orderStatus}" /></td>
+ <td><h:outputText value="#{tradeBean.orderReturn.openDate.time}">
+ <f:convertDateTime pattern="#{accountBean.dateFormat}" />
+ </h:outputText></td>
+ <td>Pending</td>
+ <td><h:outputText value="#{tradeBean.orderReturn.orderFee}" /></td>
+ <td><h:outputText value="#{tradeBean.orderReturn.orderType}" /></td>
+ <td><h:outputText value="#{tradeBean.orderReturn.symbol}" /></td>
+ <td><h:outputText value="#{tradeBean.orderReturn.quantity}" /></td>
+ </tr>
+ </tbody>
+ </table>
+ </ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/portfolio.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/portfolio.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/portfolio.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/portfolio.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,83 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:s="http://stonehenge.apache.com/jsf">
+<body>
+<ui:composition template="/template.xhtml">
+ <ui:define name="title">
+ Portfolio Information
+ </ui:define>
+ <ui:define name="body">
+ <c:if test="#{!empty portfolioBean.closedOrdersReturn}">
+ <ui:include src="alertInfo.jsf" />
+ </c:if>
+ <table class="table-outer" cellspacing="0" align="center">
+ <thead>
+ <tr>
+ <th>Holding ID</th>
+ <th>Purchase Date</th>
+ <th>Symbol</th>
+ <th>Quantity</th>
+ <th>Purchase Price</th>
+ <th>Current Price</th>
+ <th>Purchase Basis</th>
+ <th>Market Value</th>
+ <th>Gain(Loss)</th>
+ <th>Trade</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ui:repeat value="#{userBean.holdingInfo.holdingsReturn}" var="holdingData">
+ <tr>
+ <td><h:outputText value="#{holdingData.holdingID}" /></td>
+ <td><h:outputText value="#{holdingData.purchaseDate.time}">
+ <f:convertDateTime pattern="#{accountBean.dateFormat}" />
+ </h:outputText></td>
+ <td>
+
+ <form action="quotes.faces" method="post"><input
+ type="hidden" name="SYMBOLS" value="#{holdingData.quoteID}" /> <input
+ type="submit" name="GETQUOTE" value="#{holdingData.quoteID}"></input>
+ </form>
+ </td>
+ <td class="currency"><h:outputText
+ value="#{holdingData.quantity}" /></td>
+ <td class="currency"><s:currency
+ value="#{holdingData.purchasePrice}" /></td>
+ <td class="currency"><h:outputText
+ value="#{userBean.holdingInfo.quoteInfo[holdingData.quoteID]}" /></td>
+ <td class="currency"><s:currency
+ value="#{holdingData.purchasePrice*holdingData.quantity}" /></td>
+ <td class="currency"><s:currency
+ value="#{holdingData.quantity*userBean.holdingInfo.quoteInfo[holdingData.quoteID]}" /></td>
+ <td class="currency"><s:price
+ value="#{(userBean.holdingInfo.quoteInfo[holdingData.quoteID]-holdingData.purchasePrice)*holdingData.quantity}" /></td>
+ <td class="currency">
+ <h:form><input
+ type="hidden" name="holdingId" value="#{holdingData.holdingID}"></input><input
+ type="hidden" name="quantity" value="#{holdingData.quantity}"></input><input
+ type="hidden" name="symbol" value="#{holdingData.quoteID}"></input><input
+ type="hidden" name="type" value="Sell" /><h:commandButton
+ value="Sell" action="#{tradeBean.submitToConfirm}" /></h:form>
+ </td>
+ </tr>
+ </ui:repeat>
+
+ <tr class="total">
+ <td colspan="6">Totals</td>
+ <td class="currency"><s:currency
+ value="#{userBean.holdingInfo.purchaseBasis}" /></td>
+ <td class="currency"><s:currency
+ value="#{userBean.holdingInfo.totalHoldings}" /></td>
+ <td><s:price value="#{userBean.holdingInfo.gain}"/></td>
+ <td></td>
+ </tr>
+ </tbody>
+ </table>
+ <ui:include src="getQuote.jsf" />
+ </ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/quotes.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/quotes.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/quotes.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/quotes.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,56 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:c="http://java.sun.com/jstl/core"
+ xmlns:s="http://stonehenge.apache.com/jsf">
+<body>
+<ui:composition template="/template.xhtml">
+ <ui:define name="title">
+ Stock Quotes
+ </ui:define>
+ <ui:define name="body">
+ <c:if test="#{!empty portfolioBean.closedOrdersReturn}">
+ <ui:include src="alertInfo.jsf" />
+ </c:if>
+ <table class="table-outer" cellspacing="0" align="center">
+ <thead>
+ <tr>
+ <th>Symbol</th>
+ <th>Company</th>
+ <th>Volume</th>
+ <th>Price Range</th>
+ <th>Open Price</th>
+ <th>Current Price</th>
+ <th>Gain(Loss)</th>
+ <th>Trade</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ui:repeat value="#{quoteBean.quoteBeanReturns}"
+ var="quoteBeanReturn">
+ <tr>
+ <td><h:outputText value="#{quoteBeanReturn.symbol}" /></td>
+ <td><h:outputText value="#{quoteBeanReturn.companyName}" /></td>
+ <td><h:outputText value="#{quoteBeanReturn.volume}" /></td>
+ <td><h:outputText
+ value="\$#{quoteBeanReturn.low}-\$#{quoteBeanReturn.high}" /></td>
+ <td><s:currency value="#{quoteBeanReturn.open}" /></td>
+ <td><s:currency value="#{quoteBeanReturn.price}" /></td>
+ <td><s:price value="#{quoteBeanReturn.change}"/></td>
+ <td><h:form>
+ <input type="hidden" name="quantity" value="#{quoteBeanReturn.volume}" />
+ <input type="hidden" name="symbol" value="#{quoteBeanReturn.symbol}" />
+ <input type="hidden" name="price" value="#{quoteBeanReturn.price}" />
+ <input type="hidden" name="type" value="Buy" />
+ <h:commandButton value="Buy" action="#{tradeBean.submitToConfirm}"/>
+ </h:form></td>
+ </tr>
+ </ui:repeat>
+ </tbody>
+ </table>
+ <ui:include src="getQuote.jsf" />
+ </ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/register.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/register.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/register.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/register.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,72 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<body>
+<ui:composition template="/template.xhtml">
+ <ui:define name="title">
+ Register
+</ui:define>
+ <ui:define name="body">
+ <h:messages style="color: red" align="center" />
+ <table class="profile" cellspacing="0" width="100%">
+ <thead>
+ <tr>
+ <th>Create Account Profile:</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><h:form id="AccountProfile">
+ <table cellspacing="0" align="center">
+ <tr>
+ </tr>
+ <tr>
+ <td>Requested ID:</td>
+ <td><h:inputText id="UserID" size="25"
+ value="#{registerBean.userId}" required="true" /></td>
+ <td>Opening Balance:</td>
+ <td><h:inputText id="OpeningBalance"
+ value="#{registerBean.openBalance}" size="25" required="true" /></td>
+ </tr>
+ <tr>
+ <td>Full Name:</td>
+ <td><h:inputText id="FullName" size="25"
+ value="#{registerBean.fullName}" required="true" /></td>
+ <td>Email Address:</td>
+ <td><h:inputText id="Email" size="25"
+ value="#{registerBean.email}" required="true" /></td>
+ </tr>
+ <tr>
+ <td>Address:</td>
+ <td><h:inputText id="Address" size="25"
+ value="#{registerBean.address}" required="true" /></td>
+ <td>Password:</td>
+ <td><h:inputSecret id="Password" size="25"
+ value="#{registerBean.password}" required="true" /></td>
+ </tr>
+
+ <tr>
+ <td>Credit Card:</td>
+ <td><h:inputText size="25" id="CreditCard"
+ value="#{registerBean.creditCard}" required="true" /></td>
+ <td>Confirm Password:</td>
+ <td><h:inputSecret id="ConPASSWORD" validator="#{registerBean.passwordValidate}" required="true"
+ value="#{registerBean.confPassword}"
+ size="25" /></td>
+ </tr>
+ <tr>
+ <td colspan="4" class="button"><h:commandButton
+ class="button" title="submit" value="Register"
+ action="#{registerBean.register}" /></td>
+ </tr>
+ </table>
+ </h:form></td>
+ </tr>
+ </tbody>
+ </table>
+ </ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/registerSuccess.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/registerSuccess.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/registerSuccess.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/registerSuccess.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,21 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:c="http://java.sun.com/jsp/jstl/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<body>
+<ui:composition template="/template.xhtml">
+ <ui:define name="title">
+ Register
+</ui:define>
+ <ui:define name="body">
+ <p style="color: red" align="center" >
+ <h:outputText value="Registration was successful, please " />
+ <h:outputLink value="login.jsf" >
+ <h:outputText value="login." />
+ </h:outputLink>
+ </p>
+</ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/template.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/template.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/template.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/template.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,47 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+<head>
+<title>Apache Stonehenge StockTrader Welcome</title>
+<link rel="stylesheet" type="text/css" href="css/style.css" />
+</head>
+
+<body>
+<div id="content">
+<div id="header">
+<div class="logo"><img src="images/logo.png" /></div>
+</div>
+<div id="header-links">
+<table>
+ <tr>
+ <td><a href="welcome.jsf">Welcome</a></td>
+ <td><a href="home.faces">Home</a></td>
+ <td><a href="account.faces">Account</a></td>
+ <td><a href="portfolio.faces">Portfolio</a></td>
+ <td><a href="quotes.faces">Quotes/Trade</a></td>
+ <td><a href="glossary.jsf">Glossary</a></td>
+ <td><a href="configService.jsf">Config</a></td>
+ <td><a href="login.jsf">Login/Logout</a></td>
+ </tr>
+</table>
+</div>
+
+<div id="middle">
+<div class="main-title">
+<h1><ui:insert name="title">Welcome!</ui:insert></h1>
+<script type="text/javascript">
+ var thisdate = new Date();
+ document.writeln(thisdate.toLocaleString());
+</script></div>
+
+<ui:insert name="body"></ui:insert></div>
+
+<div id="footer">
+<div style="float: right;">Powered by <a
+ href="https://metro.dev.java.net/"> <img align="top"
+ src="images/powered-by-logo.gif"
+ style="margin-top: -3px; margin-left: 0px;" /> </a></div>
+</div>
+</div>
+</body>
+</html>
\ No newline at end of file
Added: incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/welcome.xhtml
URL: http://svn.apache.org/viewvc/incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/welcome.xhtml?rev=811675&view=auto
==============================================================================
--- incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/welcome.xhtml (added)
+++ incubator/stonehenge/trunk/stocktrader/metro/trader_client/web/welcome.xhtml Sat Sep 5 16:41:14 2009
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html">
+<body>
+<ui:composition template="/template.xhtml">
+ <ui:define name="title">
+ Welcome!
+</ui:define>
+ <ui:define name="body">
+ <table>
+ <tr>
+ <td>
+ <div class="left">
+ <p>This application is an end-to-end sample application for JSF technologies. It is a service-oriented application
+ written using JSF that utilize <a
+ href="https://metro.dev.java.net/">SUN METRO</a>.</p>
+
+ <p>The application also offers a rich set of interoperability
+ options with other platforms. This includes interoperability with
+ Java-based application servers and <a
+ href="http://wso2.org/projects/wsf/php">WSO2
+ WSF/PHP</a> sample application, and <a
+ href="http://msdn.microsoft.com/en-us/netframework/bb499684.aspx">Microsoft
+ .NET Stocktrader</a> sample application. The application offers an
+ excellent opportunity for developers to learn about JSF and
+ building interoperable, service-oriented applications.</p>
+
+ <p>For more details, check <a
+ href="http://incubator.apache.org/stonehenge">Apache Stonehenge
+ home page</a>.</p>
+
+ </div>
+ </td>
+
+ <td>
+ <div class="right">
+ <h3>Sample of Technologies Demonstrated</h3>
+ <table>
+ <tbody>
+ <tr>
+ <td>
+ <ul>
+ <li>Service-oriented, n-tier design with PHP, Java and .NET</li>
+
+ <li>Clean separation of UI, business services and DB access</li>
+ <li>SUN Web Services Framework Metro For Java</li>
+ <li>SUN Web Services Application Server Glassfish</li>
+ <li>Interoperability with .NET</li>
+ <li>Loosely-coupled, message-oriented design</li>
+ </ul>
+
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </ui:define>
+</ui:composition>
+</body>
+</html>
\ No newline at end of file