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

Shane Bryzak sbryzak at redhat.com
Mon Apr 30 21:31:49 EDT 2007


  User: sbryzak2
  Date: 07/04/30 21:31:49

  Modified:    examples/seambay/view       auction.xhtml header.xhtml
                        search.xhtml sell.xhtml
  Added:       examples/seambay/view       register.xhtml sell2.xhtml
  Log:
  new user registration, other various stuff
  
  Revision  Changes    Path
  1.6       +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.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- auction.xhtml	24 Apr 2007 12:32:29 -0000	1.5
  +++ auction.xhtml	1 May 2007 01:31:49 -0000	1.6
  @@ -8,8 +8,8 @@
     <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"/>
  +    <link href="#{facesContext.externalContext.requestContextPath}/style/common.css" rel="stylesheet" type="text/css"/>
  +    <link href="#{facesContext.externalContext.requestContextPath}/style/auction.css" rel="stylesheet" type="text/css"/>
     </head>
   
     <body>
  @@ -24,7 +24,7 @@
         
         <div class="headerNav">
           <div class="navHome">
  -          <s:link view="/home.xhtml"><img src="img/arrow_left.png" border="0"/></s:link>
  +          <s:link view="/home.xhtml"><img src="#{facesContext.externalContext.requestContextPath}/img/arrow_left.png" border="0"/></s:link>
           </div>
           <div class="navHome">
             <s:link view="/home.xhtml" value="Back to home page"/>        
  @@ -57,7 +57,7 @@
             </s:graphicImage>        
   
             <div>
  -            <a href="#images">View larger picture</a>
  +            <a href="#pictures">View larger picture</a>
             </div>          
             
           </div>
  
  
  
  1.6       +4 -3      jboss-seam/examples/seambay/view/header.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: header.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/header.xhtml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- header.xhtml	23 Apr 2007 14:37:02 -0000	1.5
  +++ header.xhtml	1 May 2007 01:31:49 -0000	1.6
  @@ -7,7 +7,7 @@
     <ui:composition>
       
       <div id="header">
  -      <div class="seambay-logo"></div>
  +      <s:link view="/home.xhtml" propagation="none"><div class="seambay-logo"></div></s:link>
       
         <div class="header_tools_top">
           <div class="header_links">
  @@ -25,7 +25,7 @@
         <div class="header_tools_bottom">    
           <div>          
             <s:link view="/buy.xhtml" value="Buy" styleClass="header_action"
  -          /><s:link view="/sell.xhtml" value="Sell" styleClass="header_action"
  +          /><s:link view="/sell.xhtml" value="Sell" styleClass="header_action" propagation="none"
             /><s:link view="/help.xhtml" value="Help" styleClass="header_action"/>
           </div>       
   
  @@ -41,6 +41,7 @@
       
       <s:fragment rendered="#{identity.loggedIn}">
         Hello, #{authenticatedAccount.name}.
  +      <span>(</span><s:link action="#{identity.logout}" value="Sign out"/><span>)</span>
       </s:fragment>
       
     </ui:composition>
  
  
  
  1.8       +5 -3      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.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- search.xhtml	19 Apr 2007 04:35:59 -0000	1.7
  +++ search.xhtml	1 May 2007 01:31:49 -0000	1.8
  @@ -62,9 +62,11 @@
         	  </h:column>
         		<h:column>
         			<f:facet name="header">Item</f:facet>
  -      			<s:link view="/auction.xhtml" value="#{auction.title}" propagation="none">
  -      			  <f:param name="id" value="#{auction.auctionId}"/>
  -      			</s:link>
  +
  +            <h:outputLink value="#{facesContext.externalContext.requestContextPath}/itemdetail/#{auction.auctionId}">
  +              #{auction.title}
  +            </h:outputLink>
  +      			
         		</h:column>
         		<h:column>
         			<f:facet name="header">Bids</f:facet>
  
  
  
  1.2       +33 -4     jboss-seam/examples/seambay/view/sell.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: sell.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/sell.xhtml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- sell.xhtml	23 Apr 2007 11:31:11 -0000	1.1
  +++ sell.xhtml	1 May 2007 01:31:49 -0000	1.2
  @@ -10,6 +10,7 @@
       <title>seamBay</title>
       <link href="style/home.css" rel="stylesheet" type="text/css"/>
       <link href="style/common.css" rel="stylesheet" type="text/css"/>
  +    <link href="style/sell.css" rel="stylesheet" type="text/css"/>
     </head>
   
     <body>
  @@ -18,7 +19,35 @@
         
         <div class="banner"></div>
        
  -      Sell stuff here
  +      <div class="content">
  +        <div class="sellHeader">
  +          List a new item for sale
  +        </div>
  +
  +        <div class="sellSubHeader">
  +          Enter the details below then click next
  +        </div>
  +
  +        <h:form>
  +
  +          <s:validateAll>
  +            <div class="formRow">
  +              <h:outputLabel for="title">Enter a title for your auction</h:outputLabel>
  +              <h:inputText id="title" value="#{auction.title}" required="true"/>
  +              <div class="validationError"><h:message for="title"/></div>
  +            </div>
  +
  +          </s:validateAll>
  +
  +          <h:commandButton action="next" value="Next >"/>
  +
  +          <hr class="thinLine"/>
  +
  +          <hr class="baseLine"/>
  +
  +        </h:form>
  +
  +      </div>
   
       </div>
     </body>
  
  
  
  1.1      date: 2007/05/01 01:31:49;  author: sbryzak2;  state: Exp;jboss-seam/examples/seambay/view/register.xhtml
  
  Index: register.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 New User Registration</title>
      <link href="style/home.css" rel="stylesheet" type="text/css"/>
      <link href="style/common.css" rel="stylesheet" type="text/css"/>
      <link href="style/register.css" rel="stylesheet" type="text/css"/>
    </head>
  
    <body>
  
      <div class="content">
        <s:link view="/home.xhtml" propagation="none"><div class="seambay-logo"></div></s:link>
    
        <br class="clear"/>
    
        <table width="100%" cellspacing="0" cellpadding="0" class="colourBar">
          <tr>
            <td class="lc1"/>
            <td class="lc2"/>
            <td class="lc3"/>
            <td class="lc4"/>
            <td class="lc5"/>
            <td class="lc6"/>
            <td class="lc7"/>
          </tr>
        </table>
       
        <h:messages globalOnly="true"/>
        
        <div class="registerHeader">
          Registration
        </div>
        
        <div class="registerSubHeader">
          Fill in the following details to register.
        </div>
       
        <h:form>
          <p>
            <b>seamBay User ID</b><br/>
            <h:inputText id="username" value="#{newuser.username}"/>
            <div class="validationError"><h:message for="username"/></div>
          </p>        
  
          <p>
            <b>Password</b><br/>
            <h:inputSecret id="password" value="#{newuser.password}"/>
            <div class="validationError"><h:message for="password"/></div>
          </p>              
          
          <p>
            <b>Confirm Password</b><br/>
            <h:inputSecret id="confirm" value="#{registerAction.confirm}"/>
            <div class="validationError"><h:message for="confirm"/></div>
          </p>
  
          <p>
            <b>Location</b><br/>
            <h:inputText id="location" class="location" value="#{newuser.account.location}"/>
            <div class="validationError"><h:message for="location"/></div>
          </p>
          
          <h:commandButton value="Register >" action="#{registerAction.register}"/>
          
        </h:form>
        
        <hr class="thinLine"/>
        
        <hr class="baseLine"/>      
       
      </div>
        
    </body>
  </html>
  
  
  
  1.1      date: 2007/05/01 01:31:49;  author: sbryzak2;  state: Exp;jboss-seam/examples/seambay/view/sell2.xhtml
  
  Index: sell2.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</title>
      <link href="style/home.css" rel="stylesheet" type="text/css"/>
      <link href="style/common.css" rel="stylesheet" type="text/css"/>
    </head>
  
    <body>
      <div class="container">
        <ui:include src="header.xhtml"/>  
        
        <div class="banner"></div>
       
        <h:form>
  
          <s:validateAll>
            <div class="formRow">
              <h:outputLabel for="description">Enter a description for your auction</h:outputLabel>
              <h:inputText id="description" value="#{auction.description}" required="true"/>
              <div class="validationError"><h:message for="description"/></div>
            </div>        
  
            <h:commandButton action="next" value="Next"/>
  
          </s:validateAll>
          
        </h:form>
  
      </div>
    </body>
  </html>
  
  
  



More information about the jboss-cvs-commits mailing list