[jboss-cvs] jboss-seam/examples/seambay/view ...
Shane Bryzak
sbryzak at redhat.com
Thu Apr 19 03:16:09 EDT 2007
User: sbryzak2
Date: 07/04/19 03:16:09
Modified: examples/seambay/view auction.xhtml home.xhtml
Log:
more enhancements for auction detail view
Revision Changes Path
1.3 +25 -2 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.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- auction.xhtml 19 Apr 2007 04:35:59 -0000 1.2
+++ auction.xhtml 19 Apr 2007 07:16:09 -0000 1.3
@@ -55,11 +55,23 @@
<s:graphicImage rendered="#{auction.image ne null}" value="#{auction.image.data}">
<s:transformImageSize width="200" maintainRatio="true"/>
</s:graphicImage>
+
+ <div>
+ <a href="#images">View larger picture</a>
+ </div>
+
</div>
<div class="itemDetails">
<div class="itemDetailRow">
- <label>Current bid:</label>
+ <label>
+ <s:fragment rendered="#{auction.highBidder ne null}">
+ Current bid:
+ </s:fragment>
+ <s:fragment rendered="#{auction.highBidder eq null}">
+ Starting price:
+ </s:fragment>
+ </label>
<div>
$<b><h:outputText value="#{auction.price}">
<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
@@ -160,7 +172,18 @@
Description
</div>
- #{auction.description}
+ <div class="descriptionContent">
+ <s:formattedText value="#{auction.description}" />
+
+ <hr/>
+
+ <a name="pictures">
+ <div class="images">
+ <s:graphicImage rendered="#{auction.image ne null}" value="#{auction.image.data}"/>
+
+ </div>
+ </a>
+ </div>
</div>
</body>
1.5 +4 -1 jboss-seam/examples/seambay/view/home.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: home.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/home.xhtml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- home.xhtml 11 Apr 2007 07:16:12 -0000 1.4
+++ home.xhtml 19 Apr 2007 07:16:09 -0000 1.5
@@ -2,6 +2,7 @@
<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>
@@ -23,7 +24,9 @@
</div>
<ui:repeat value="#{categories}" var="cat">
- <a href="#">#{cat.name}</a>
+ <s:link view="/search.xhtml" value="#{cat.name}" propagation="none">
+ <f:param name="categoryId" value="#{cat.categoryId}"/>
+ </s:link>
</ui:repeat>
</div>
More information about the jboss-cvs-commits
mailing list