[jboss-cvs] jboss-seam/examples/seambay/view ...
Shane Bryzak
sbryzak at redhat.com
Sun Aug 5 23:02:28 EDT 2007
User: sbryzak2
Date: 07/08/05 23:02:28
Modified: examples/seambay/view auction.xhtml bid.xhtml
feedback.xhtml
Added: examples/seambay/view bidhistory.xhtml
Log:
bid history page
Revision Changes Path
1.12 +93 -64 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.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- auction.xhtml 17 Jul 2007 07:12:38 -0000 1.11
+++ auction.xhtml 6 Aug 2007 03:02:28 -0000 1.12
@@ -47,6 +47,30 @@
<div class="headerContent">
+
+ <s:fragment rendered="#{auctionDetail.status == 'highBidder'}">
+ You are the high bidder. Yay!
+ </s:fragment>
+
+ <s:fragment rendered="#{auctionDetail.status == 'outbid'}">
+ <div class="outbidImage"/>
+
+ <div class="alertContent">
+ <span class="outbidHeader">You have been outbid by another bidder (if you like, you can bid again)</span>
+ </div>
+
+ <div class="outbidMessage">
+ <b>Important:</b> Another bidder placed a higher maximum bid than yours, possibly
+ <b>days or hours before you did</b>. To increase your chance
+ of winning this item, enter the <b>highest</b> amount that you would be willing to
+ pay.
+ </div>
+
+ <div class="itemDetailRow">
+ <label>Time left:</label>
+ <div>#{auction.daysHoursLeft}</div>
+ </div>
+ </s:fragment>
</div>
</div>
@@ -64,6 +88,7 @@
<div class="itemDetails">
<div class="itemDetailRow">
+ <h:form>
<label>
<s:fragment rendered="#{auction.highBid ne null}">
Current bid:
@@ -76,7 +101,9 @@
$<b><h:outputText value="#{auction.currentPrice}">
<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
</h:outputText></b>
+ <h:commandButton styleClass="placeBid" action="#{bidAction.placeBid}"/>
</div>
+ </h:form>
</div>
<hr class="itemDetailSeparator" />
@@ -106,7 +133,7 @@
<s:link view="/bidhistory.seam" propagation="none">
#{auction.bids} bids
- <f:param name="auctionId" value="#{auction.auctionId}"/>
+ <f:param name="id" value="#{auction.auctionId}"/>
</s:link>
</div>
</div>
@@ -220,7 +247,9 @@
</h:outputText><b> or more</b>)
</div>
+ <div class="indented">
<h:commandButton styleClass="placeBid" action="#{bidAction.placeBid}"/>
+ </div>
</h:form>
1.7 +3 -3 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.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- bid.xhtml 17 Jul 2007 07:12:38 -0000 1.6
+++ bid.xhtml 6 Aug 2007 03:02:28 -0000 1.7
@@ -34,7 +34,7 @@
Review and Confirm your Bid
</s:div>
- <s:div styleClass="headerTitle" rendered="#{bidAction.outcome == 'invalid'}">
+ <s:div styleClass="headerTitle" rendered="#{bidAction.outcome == 'invalid' or bidAction.outcome == 'required'}">
Place Bid
</s:div>
@@ -123,7 +123,7 @@
</div>
</div>
- <s:div styleClass="itemDetailRow" rendered="#{bidAction.outcome != 'invalid'}">
+ <s:div styleClass="itemDetailRow" rendered="#{bidAction.outcome != 'invalid' and bidAction.outcome != 'required'}">
<label><b>Your maximum bid:</b></label>
<div>
<b>AU $<h:outputText value="#{bidAction.bid.maxAmount}">
@@ -132,7 +132,7 @@
</div>
</s:div>
- <h:form rendered="#{bidAction.outcome == 'invalid'}">
+ <h:form rendered="#{bidAction.outcome == 'invalid' or bidAction.outcome == 'required'}">
<div class="maximumBidRow">
<label>Your maximum bid:</label>
<div>
1.3 +1 -1 jboss-seam/examples/seambay/view/feedback.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: feedback.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/feedback.xhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- feedback.xhtml 24 Apr 2007 12:32:29 -0000 1.2
+++ feedback.xhtml 6 Aug 2007 03:02:28 -0000 1.3
@@ -87,7 +87,7 @@
</h:outputLink>)
</span>
<div class="itemDescription">
- $<h:outputText value="#{fb.item.price}">
+ $<h:outputText value="#{fb.item.highBid.actualPrice}">
<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
</h:outputText>
</div>
1.1 date: 2007/08/06 03:02:28; author: sbryzak2; state: Exp;jboss-seam/examples/seambay/view/bidhistory.xhtml
Index: bidhistory.xhtml
===================================================================
<!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:s="http://jboss.com/products/seam/taglib"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>seamBay - Bid History for item #{auction.auctionId}</title>
<link href="#{facesContext.externalContext.requestContextPath}/style/history.css" rel="stylesheet" type="text/css"/>
<link href="#{facesContext.externalContext.requestContextPath}/style/common.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container">
<ui:include src="header.xhtml"/>
<div class="banner"></div>
<div class="headerNav">
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/itemdetail/#{auction.auctionId}">
<img src="#{facesContext.externalContext.requestContextPath}/img/arrow_left.png" border="0"/>
</h:outputLink>
<h:outputLink value="#{facesContext.externalContext.requestContextPath}/itemdetail/#{auction.auctionId}">
Back to auction details
</h:outputLink>
</div>
<div id="historyHeader">
<div class="headerTitle">
Bid History
</div>
<div class="headerStatus">
</div>
</div>
<div class="history">
<div>
Item title: #{auction.title}
</div>
<div>
Time left: #{auction.prettyTimeLeft}
</div>
<div class="history">
<h:dataTable id="history"
value="#{history}"
var="h"
cellspacing="0px"
width="100%"
styleClass="historyTable">
<h:column>
<f:facet name="header">Bidder</f:facet>
#{h.account.name}
</h:column>
<h:column>
<f:facet name="header">Bid Amount</f:facet>
#{h.actualAmount}
</h:column>
<h:column>
<f:facet name="header">Date of bid</f:facet>
<h:outputText value="#{h.bidDate}">
<f:convertDateTime pattern="dd-MMM-yy HH:mm"/>
</h:outputText>
</h:column>
</h:dataTable>
</div>
</div>
</div>
</body>
</html>
More information about the jboss-cvs-commits
mailing list