[jboss-cvs] jboss-seam/examples/seambay/view ...
Shane Bryzak
sbryzak at redhat.com
Sun Apr 15 21:39:51 EDT 2007
User: sbryzak2
Date: 07/04/15 21:39:51
Modified: examples/seambay/view search.xhtml test.js
Log:
prettified the search screen
Revision Changes Path
1.3 +4 -2 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.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- search.xhtml 2 Apr 2007 05:39:32 -0000 1.2
+++ search.xhtml 16 Apr 2007 01:39:51 -0000 1.3
@@ -66,11 +66,13 @@
</h:column>
<h:column>
<f:facet name="header">Price</f:facet>
- #{auction.price}
+ $<h:outputText value="#{auction.price}">
+ <f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
+ </h:outputText>
</h:column>
<h:column>
<f:facet name="header">Time left</f:facet>
- #{auction.timeLeft}
+ #{auction.prettyTimeLeft}
</h:column>
</h:dataTable>
1.6 +26 -0 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.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- test.js 11 Apr 2007 15:41:12 -0000 1.5
+++ test.js 16 Apr 2007 01:39:51 -0000 1.6
@@ -91,6 +91,32 @@
svc.addParameter(new ServiceParam("Description", "description"));
svc.addParameter(new ServiceParam("Category ID", "categoryId"));
+svc = new ServiceMetadata("setAuctionDuration", "Create/Update 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 <soapenv:Header/>" +
+ "\n <soapenv:Body>" +
+ "\n <seam:setAuctionDuration>" +
+ "\n <arg0>#{auctionId}</arg0>" +
+ "\n <arg1>#{duration}</arg1>" +
+ "\n </seam:setAuctionDuration>" +
+ "\n </soapenv:Body>" +
+ "\n</soapenv:Envelope>");
+svc.addParameter(new ServiceParam("Auction ID", "auctionId"));
+svc.addParameter(new ServiceParam("Duration in days", "duration"));
+
+svc = new ServiceMetadata("confirmAuction", "Create/Update 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 <soapenv:Header/>" +
+ "\n <soapenv:Body>" +
+ "\n <seam:confirmAuction>" +
+ "\n <arg0>#{auctionId}</arg0>" +
+ "\n </seam:confirmAuction>" +
+ "\n </soapenv:Body>" +
+ "\n</soapenv:Envelope>");
+svc.addParameter(new ServiceParam("Auction ID", "auctionId"));
+
// end of web service definitions
More information about the jboss-cvs-commits
mailing list