[jboss-cvs] jboss-seam/examples/seambay/view ...

Shane Bryzak sbryzak at redhat.com
Sun Aug 5 23:41:26 EDT 2007


  User: sbryzak2
  Date: 07/08/05 23:41:26

  Modified:    examples/seambay/view    auction.xhtml bid.xhtml
                        bidhistory.xhtml
  Log:
  fix bidding logic, date formatting, simplified url for history page
  
  Revision  Changes    Path
  1.13      +4 -4      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.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- auction.xhtml	6 Aug 2007 03:02:28 -0000	1.12
  +++ auction.xhtml	6 Aug 2007 03:41:26 -0000	1.13
  @@ -130,11 +130,11 @@
             <div class="itemDetailRow">
               <label>History:</label>
               <div>
  -              <s:link view="/bidhistory.seam" propagation="none">
  +                          
  +              <h:outputLink value="#{facesContext.externalContext.requestContextPath}/bidhistory/#{auction.auctionId}">
                   #{auction.bids} bids
  +              </h:outputLink>              
   
  -                <f:param name="id" value="#{auction.auctionId}"/>
  -              </s:link>
               </div>
             </div>
   
  
  
  
  1.8       +5 -5      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.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- bid.xhtml	6 Aug 2007 03:02:28 -0000	1.7
  +++ bid.xhtml	6 Aug 2007 03:41:26 -0000	1.8
  @@ -96,10 +96,10 @@
             <div class="itemDetailRow">
               <label>History:</label>
               <div>
  -              <s:link view="/bidhistory.seam" propagation="none">
  +              <h:outputLink value="#{facesContext.externalContext.requestContextPath}/bidhistory/#{bidAction.bid.auction.auctionId}">
                   #{bidAction.bid.auction.bids} bids                
  -                <f:param name="auctionId" value="#{bidAction.bid.auction.auctionId}"/>
  -              </s:link>            
  +              </h:outputLink>                
  +              
               </div>
             </div>
           </s:fragment>
  
  
  
  1.2       +28 -24    jboss-seam/examples/seambay/view/bidhistory.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: bidhistory.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/bidhistory.xhtml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- bidhistory.xhtml	6 Aug 2007 03:02:28 -0000	1.1
  +++ bidhistory.xhtml	6 Aug 2007 03:41:26 -0000	1.2
  @@ -62,13 +62,17 @@
           	  
           	  <h:column>
           	    <f:facet name="header">Bid Amount</f:facet>    	    
  -        	    #{h.actualAmount}
  +
  +              <h:outputText value="#{h.actualAmount}">
  +                <f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
  +              </h:outputText>
  +
           	  </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"/>
  +                <f:convertDateTime pattern="dd-MMM-yy HH:mm:ss"/>
                 </h:outputText>    	          	    
           	  </h:column>      	  
           	  
  
  
  



More information about the jboss-cvs-commits mailing list