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

Shane Bryzak sbryzak at redhat.com
Sun Jul 15 23:42:22 EDT 2007


  User: sbryzak2
  Date: 07/07/15 23:42:22

  Modified:    examples/seambay/view  bid.xhtml
  Log:
  bid validation
  
  Revision  Changes    Path
  1.3       +36 -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.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- bid.xhtml	14 Jul 2007 01:56:25 -0000	1.2
  +++ bid.xhtml	16 Jul 2007 03:42:22 -0000	1.3
  @@ -30,14 +30,28 @@
           </tr>
         </table>      
        
  -      <div class="headerTitle">
  +      <s:div styleClass="headerTitle" rendered="#{bidAction.validBid}">
           Review and Confirm your Bid
  -      </div>
  +      </s:div>
  +      
  +      <s:div styleClass="headerTitle" rendered="#{not bidAction.validBid}">
  +        Place Bid
  +      </s:div>
                 
         <div class="headerContent">
           <b>Hello #{authenticatedAccount.name}!</b>
         </div>
         
  +      <s:div rendered="#{not bidAction.validBid}" styleClass="subSection">
  +        <div class="alertImage"/>
  +        <div class="alertContent">
  +          <div class="error">The following must be corrected before continuing:</div>
  +          Enter $<h:outputText value="#{bidAction.bid.auction.nextBidInterval}">
  +            <f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
  +          </h:outputText><span> <b>or more</b></span>
  +        </div>   
  +      </s:div>
  +            
         <div class="bidImage">
           <s:graphicImage rendered="#{bidAction.bid.auction.image ne null}" value="#{bidAction.bid.auction.image.data}">
             <s:transformImageSize width="80" maintainRatio="true"/>
  @@ -57,18 +71,35 @@
             </div>
           </div>
           
  -        <div class="itemDetailRow">
  +        <s:div styleClass="itemDetailRow" rendered="#{bidAction.validBid}">
             <label><b>Your maximum bid:</b></label>
             <div>
               <b>AU $<h:outputText value="#{bidAction.bid.amount}">
                 <f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
               </h:outputText></b>
             </div>
  +        </s:div>
  +        
  +        <h:form rendered="#{not bidAction.validBid}">
  +          <div class="maximumBidRow">
  +            <label>Your maximum bid:</label>
  +            <div>
  +              <b>$ </b>
  +              <h:inputText id="bidAmount" value="#{bidAmount}"/>
  +              <span> (Enter $<h:outputText value="#{bidAction.bid.auction.nextBidInterval}">
  +            <f:convertNumber minFractionDigits="2" maxFractionDigits="2"/>
  +          </h:outputText> <b>or more</b>)</span>
  +            </div>          
           </div>
         
  +          <div class="placeBid">
  +            <h:commandButton action="#{bidAction.updateBid}" value="Continue >"/>
  +          </div>
  +        </h:form>
  +      
         </div>
                          
  -      <h:form>
  +      <h:form rendered="#{bidAction.validBid}">
                
           <div class="confirmBid">
             <b>By clicking on the button below, you agree to buy this item if you're the
  
  
  



More information about the jboss-cvs-commits mailing list