[jboss-cvs] jboss-seam/examples/seambay/view ...
Shane Bryzak
sbryzak at redhat.com
Fri Jul 13 21:56:25 EDT 2007
User: sbryzak2
Date: 07/07/13 21:56:25
Modified: examples/seambay/view auction.xhtml bid.xhtml test.js
Log:
bidding page, lots of other changes
Revision Changes Path
1.8 +7 -6 jboss-seam/examples/seambay/view/auction.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: auction.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/auction.xhtml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- auction.xhtml 11 Jul 2007 14:32:41 -0000 1.7
+++ auction.xhtml 14 Jul 2007 01:56:25 -0000 1.8
@@ -40,13 +40,13 @@
<br class="clear"/>
</div>
- <div id="itemHeader">
+ <div class="mainHeader">
<div class="headerTitle">
#{auction.title}
</div>
- <div class="headerStatus">
-
+ <div class="headerContent">
+
</div>
</div>
@@ -207,9 +207,10 @@
<div class="bidRow">
<h:outputLabel for="bidAmount">Your maximum bid:</h:outputLabel>
- <span>$ </span><h:inputText id="bidAmount" value="#{newBid.amount}" required="true">
+ <span>$ </span><h:inputText id="bidAmount" value="#{bidAmount}" required="true"/>
+ (Enter $ <h:outputText value="#{auction.nextBidInterval}">
<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
- </h:inputText>
+ </h:outputText><b> or more</b>)
</div>
<h:commandButton styleClass="placeBid" action="#{bidAction.placeBid}"/>
1.2 +58 -41 jboss-seam/examples/seambay/view/bid.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: bid.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/bid.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- bid.xhtml 11 Jul 2007 14:32:41 -0000 1.1
+++ bid.xhtml 14 Jul 2007 01:56:25 -0000 1.2
@@ -13,53 +13,70 @@
</head>
<body>
- <div class="container">
- <ui:include src="header.xhtml"/>
-
- <div class="banner"></div>
-
- <h:messages globalOnly="true"/>
+ <div class="content">
+ <div class="seambay-logo"></div>
<br class="clear"/>
- <div class="actionHeader">
- Please confirm your bid
- </div>
-
- <div class="actionContent">
- <div class="actionTitle">
- <span>You are bidding on: </span>
- #{bidAction.bid.auction.title}
- </div>
-
- <div class="bidContent">
-
- <hr class="blueLine"/>
-
- <h:form>
-
- <div class="bidRow">
- <h:outputLabel>Current bid:</h:outputLabel>
- <span>$ </span><h:outputText value="#{auction.price}">
+ <table width="100%" cellspacing="0" cellpadding="0" class="colourBar">
+ <tr>
+ <td class="lc1"/>
+ <td class="lc2"/>
+ <td class="lc3"/>
+ <td class="lc4"/>
+ <td class="lc5"/>
+ <td class="lc6"/>
+ <td class="lc7"/>
+ </tr>
+ </table>
+
+ <div class="headerTitle">
+ Review and Confirm your Bid
+ </div>
+
+ <div class="headerContent">
+ <b>Hello #{authenticatedAccount.name}!</b>
+ </div>
+
+ <div class="bidImage">
+ <s:graphicImage rendered="#{bidAction.bid.auction.image ne null}" value="#{bidAction.bid.auction.image.data}">
+ <s:transformImageSize width="80" maintainRatio="true"/>
+ </s:graphicImage>
+ </div>
+
+ <div class="bidItem">
+ <b>Item you're bidding on:</b><br/>
+ ${bidAction.bid.auction.title}<br/>
+
+ <div class="itemDetailRow">
+ <label>Current bid:</label>
+ <div>
+ AU $<h:outputText value="#{bidAction.bid.auction.price}">
<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
</h:outputText>
</div>
+ </div>
- <div class="bidRow">
- <h:outputLabel for="bidAmount">Your maximum bid:</h:outputLabel>
- <span>$ </span>
- <h:inputText id="bidAmount" value="#{bidAction.bid.amount}" required="true">
+ <div class="itemDetailRow">
+ <label><b>Your maximum bid:</b></label>
+ <div>
+ <b>AU $<h:outputText value="#{bidAction.bid.amount}">
<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
- </h:inputText>
- <div class="validationError"><h:message for="bidAmount"/></div>
+ </h:outputText></b>
+ </div>
</div>
- <h:commandButton styleClass="placeBid" action="#{bidAction.confirmBid}" value="Confirm Bid >"/>
+ </div>
- </h:form>
+ <h:form>
+ <div class="confirmBid">
+ <b>By clicking on the button below, you agree to buy this item if you're the
+ winning bidder.</b><br/>
+ <h:commandButton styleClass="placeBid" action="#{bidAction.confirmBid}" value="Confirm Bid"/>
</div>
- </div>
+
+ </h:form>
</div>
</body>
1.15 +21 -21 jboss-seam/examples/seambay/view/test.js
(In the diff below, changes in quantity of whitespace are not shown.)
Index: test.js
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/test.js,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- test.js 4 Jul 2007 22:46:39 -0000 1.14
+++ test.js 14 Jul 2007 01:56:25 -0000 1.15
@@ -40,12 +40,12 @@
svc = new ServiceMetadata("login", "Security");
svc.setDescription("Login");
svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
- "\n xmlns:seam=\"http://seambay.example.seam.jboss.org/\">\n <soapenv:Header/>" +
+ "\n xmlns:sb=\"http://seambay.example.seam.jboss.org/\">\n <soapenv:Header/>" +
"\n <soapenv:Body>" +
- "\n <seam:login>" +
+ "\n <sb:login>" +
"\n <arg0>#{username}</arg0>" +
"\n <arg1>#{password}</arg1>" +
- "\n </seam:login>" +
+ "\n </sb:login>" +
"\n </soapenv:Body>" +
"\n</soapenv:Envelope>");
svc.addParameter(new ServiceParam("Username", "username"));
@@ -54,22 +54,22 @@
svc = new ServiceMetadata("logout", "Security");
svc.setDescription("Logout");
svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
- "\n xmlns:seam=\"http://seambay.example.seam.jboss.org/\">\n <soapenv:Header/>" +
+ "\n xmlns:sb=\"http://seambay.example.seam.jboss.org/\">\n <soapenv:Header/>" +
"\n <soapenv:Body>" +
- "\n <seam:logout/>" +
+ "\n <sb:logout/>" +
"\n </soapenv:Body>" +
"\n</soapenv:Envelope>");
svc = new ServiceMetadata("createAuction", "Create Auction");
svc.setDescription("Create new auction");
svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
- "\n xmlns:seam=\"http://seambay.example.seam.jboss.org/\">\n <soapenv:Header/>" +
+ "\n xmlns:sb=\"http://seambay.example.seam.jboss.org/\">\n <soapenv:Header/>" +
"\n <soapenv:Body>" +
- "\n <seam:createAuction>" +
+ "\n <sb:createAuction>" +
"\n <arg0>#{title}</arg0>" +
"\n <arg1>#{description}</arg1>" +
"\n <arg2>#{categoryId}</arg2>" +
- "\n </seam:createAuction>" +
+ "\n </sb:createAuction>" +
"\n </soapenv:Body>" +
"\n</soapenv:Envelope>");
svc.addParameter(new ServiceParam("Auction title", "title"));
@@ -79,16 +79,16 @@
svc = new ServiceMetadata("updateAuctionDetails", "Create Auction");
svc.setDescription("Update auction details");
svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
- "\n xmlns:seam=\"http://seambay.example.seam.jboss.org/\">" +
+ "\n xmlns:sb=\"http://seambay.example.seam.jboss.org/\">" +
"\n <soapenv:Header>" +
"\n <seam:conversationId xmlns:seam='http://www.jboss.org/seam/webservice'>#{conversationId}</seam:conversationId>" +
"\n </soapenv:Header>" +
"\n <soapenv:Body>" +
- "\n <seam:updateAuctionDetails>" +
+ "\n <sb:updateAuctionDetails>" +
"\n <arg0>#{title}</arg0>" +
"\n <arg1>#{description}</arg1>" +
"\n <arg2>#{categoryId}</arg2>" +
- "\n </seam:updateAuctionDetails>" +
+ "\n </sb:updateAuctionDetails>" +
"\n </soapenv:Body>" +
"\n</soapenv:Envelope>");
svc.addParameter(new ServiceParam("Auction title", "title"));
@@ -99,14 +99,14 @@
svc = new ServiceMetadata("setAuctionDuration", "Create Auction");
svc.setDescription("Set auction duration");
svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
- "\n xmlns:seam=\"http://seambay.example.seam.jboss.org/\">" +
+ "\n xmlns:sb=\"http://seambay.example.seam.jboss.org/\">" +
"\n <soapenv:Header>" +
"\n <seam:conversationId xmlns:seam='http://www.jboss.org/seam/webservice'>#{conversationId}</seam:conversationId>" +
"\n </soapenv:Header>" +
"\n <soapenv:Body>" +
- "\n <seam:setAuctionDuration>" +
+ "\n <sb:setAuctionDuration>" +
"\n <arg0>#{duration}</arg0>" +
- "\n </seam:setAuctionDuration>" +
+ "\n </sb:setAuctionDuration>" +
"\n </soapenv:Body>" +
"\n</soapenv:Envelope>");
svc.addParameter(new ServiceParam("Duration in days", "duration"));
@@ -115,14 +115,14 @@
svc = new ServiceMetadata("setAuctionPrice", "Create Auction");
svc.setDescription("Set starting price");
svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
- "\n xmlns:seam=\"http://seambay.example.seam.jboss.org/\">" +
+ "\n xmlns:sb=\"http://seambay.example.seam.jboss.org/\">" +
"\n <soapenv:Header>" +
"\n <seam:conversationId xmlns:seam='http://www.jboss.org/seam/webservice'>#{conversationId}</seam:conversationId>" +
"\n </soapenv:Header>" +
"\n <soapenv:Body>" +
- "\n <seam:setAuctionPrice>" +
+ "\n <sb:setAuctionPrice>" +
"\n <arg0>#{price}</arg0>" +
- "\n </seam:setAuctionPrice>" +
+ "\n </sb:setAuctionPrice>" +
"\n </soapenv:Body>" +
"\n</soapenv:Envelope>");
svc.addParameter(new ServiceParam("Starting price", "price"));
@@ -131,12 +131,12 @@
svc = new ServiceMetadata("getNewAuctionDetails", "Create Auction");
svc.setDescription("Get the auction details");
svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
- "\n xmlns:seam=\"http://seambay.example.seam.jboss.org/\">" +
+ "\n xmlns:sbm=\"http://seambay.example.seam.jboss.org/\">" +
"\n <soapenv:Header>" +
"\n <seam:conversationId xmlns:seam='http://www.jboss.org/seam/webservice'>#{conversationId}</seam:conversationId>" +
"\n </soapenv:Header>" +
"\n <soapenv:Body>" +
- "\n <seam:getNewAuctionDetails/>" +
+ "\n <sb:getNewAuctionDetails/>" +
"\n </soapenv:Body>" +
"\n</soapenv:Envelope>");
svc.setConversational(true);
@@ -144,12 +144,12 @@
svc = new ServiceMetadata("confirmAuction", "Create Auction");
svc.setDescription("Confirm auction");
svc.setRequest("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" " +
- "\n xmlns:seam=\"http://seambay.example.seam.jboss.org/\">" +
+ "\n xmlns:sb=\"http://seambay.example.seam.jboss.org/\">" +
"\n <soapenv:Header>" +
"\n <seam:conversationId xmlns:seam='http://www.jboss.org/seam/webservice'>#{conversationId}</seam:conversationId>" +
"\n </soapenv:Header>" +
"\n <soapenv:Body>" +
- "\n <seam:confirmAuction/>" +
+ "\n <sb:confirmAuction/>" +
"\n </soapenv:Body>" +
"\n</soapenv:Envelope>");
svc.setConversational(true);
More information about the jboss-cvs-commits
mailing list