[jboss-cvs] jboss-seam/examples/seambay/view ...
Shane Bryzak
sbryzak at redhat.com
Tue Apr 17 10:57:30 EDT 2007
User: sbryzak2
Date: 07/04/17 10:57:30
Modified: examples/seambay/view search.xhtml
Added: examples/seambay/view auction.xhtml
Log:
linked search results to detail view
Revision Changes Path
1.6 +3 -1 jboss-seam/examples/seambay/view/search.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: search.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/search.xhtml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- search.xhtml 17 Apr 2007 05:38:27 -0000 1.5
+++ search.xhtml 17 Apr 2007 14:57:30 -0000 1.6
@@ -62,7 +62,9 @@
</h:column>
<h:column>
<f:facet name="header">Item</f:facet>
- <s:link value="#{auction.title}"/>
+ <s:link view="/auction.xhtml" value="#{auction.title}">
+ <f:param name="auctionId" value="#{auction.auctionId}"/>
+ </s:link>
</h:column>
<h:column>
<f:facet name="header">Bids</f:facet>
1.1 date: 2007/04/17 14:57:30; author: sbryzak2; state: Exp;jboss-seam/examples/seambay/view/auction.xhtml
Index: auction.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 - Search Results</title>
<link href="style/common.css" rel="stylesheet" type="text/css"/>
<link href="style/auction.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container">
<ui:include src="header.xhtml"/>
<div class="banner"></div>
<h:messages globalOnly="true"/>
<div id="itemHeader">
<div class="headerTitle">
#{auction.title}
</div>
<div class="headerStatus">
</div>
</div>
<div id="itemSummary">
<div class="itemImage">
<s:graphicImage rendered="#{auction.image ne null}" value="#{auction.image.data}">
<s:transformImageSize width="200" maintainRatio="true"/>
</s:graphicImage>
</div>
<div class="itemDetails">
<label>Current bid:</label>
$<h:outputText value="#{auction.price}">
<f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
</h:outputText>
</div>
</div>
<div id="sellerDetail">
</div>
<div class="descriptionHeader">
Description
</div>
#{auction.description}
</div>
</body>
</html>
More information about the jboss-cvs-commits
mailing list