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

Shane Bryzak sbryzak at redhat.com
Thu Mar 29 09:55:07 EDT 2007


  User: sbryzak2
  Date: 07/03/29 09:55:07

  Modified:    examples/seambay/view      header.xhtml home.xhtml
                        template.xhtml test.js
  Added:       examples/seambay/view      search.xhtml
  Log:
  ongoing
  
  Revision  Changes    Path
  1.2       +5 -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.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- header.xhtml	22 Mar 2007 15:02:47 -0000	1.1
  +++ header.xhtml	29 Mar 2007 13:55:07 -0000	1.2
  @@ -11,13 +11,15 @@
       
         <div class="header_tools_top">
           <div class="header_links">
  -          <a href="#" class="header_link">home</a> |
  +          <s:link view="/home.xhtml" propagation="none" value="home" styleClass="header_link"/> |
             <a href="#" class="header_link">register</a>
           </div>
           
           <div class="header_search">
  -          <input type="text" name="search_query"/>
  -          <button>Search</button>
  +          <h:form>
  +            <h:inputText id="searchTerm" value="#{auctionSearch.searchTerm}"/>
  +            <h:commandButton action="#{auctionSearch.queryAuctions}" value="Search"/>
  +          </h:form>
           </div>
         </div>
   
  
  
  
  1.3       +2 -2      jboss-seam/examples/seambay/view/home.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: home.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/home.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- home.xhtml	24 Mar 2007 05:38:10 -0000	1.2
  +++ home.xhtml	29 Mar 2007 13:55:07 -0000	1.3
  @@ -7,8 +7,8 @@
     <head>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       <title>seamBay</title>
  -    <link href="style/seambay_home.css" rel="stylesheet" type="text/css"/>
  -    <link href="style/seambay_common.css" rel="stylesheet" type="text/css"/>
  +    <link href="style/home.css" rel="stylesheet" type="text/css"/>
  +    <link href="style/common.css" rel="stylesheet" type="text/css"/>
     </head>
   
     <body>
  
  
  
  1.2       +1 -1      jboss-seam/examples/seambay/view/template.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: template.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seambay/view/template.xhtml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- template.xhtml	22 Mar 2007 15:02:47 -0000	1.1
  +++ template.xhtml	29 Mar 2007 13:55:07 -0000	1.2
  @@ -7,7 +7,7 @@
     <head>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       <title>seamBay</title>
  -    <link href="style/seambay.css" rel="stylesheet" type="text/css"/>
  +    <link href="style/common.css" rel="stylesheet" type="text/css"/>
       <link href="style/date.css" rel="stylesheet" type="text/css"/>
     </head>
   
  
  
  
  1.2       +5 -2      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.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- test.js	24 Mar 2007 05:38:10 -0000	1.1
  +++ test.js	29 Mar 2007 13:55:07 -0000	1.2
  @@ -35,12 +35,15 @@
       return;
     }
     
  -  document.getElementById('selectedService').innerHTML = svc.getDescription();
  -  document.getElementById('serviceRequest').value = svc.getRequest();
  +  document.getElementById("selectedService").innerHTML = svc.getDescription();
  +  document.getElementById("serviceRequest").value = svc.getRequest();
  +  document.getElementById("serviceResponse").value = null;
   }
   
   function sendRequest()
   {
  +  document.getElementById("serviceResponse").value = null;
  +  
     var req;
     if (window.XMLHttpRequest)
     {
  
  
  
  1.1      date: 2007/03/29 13:55:07;  author: sbryzak2;  state: Exp;jboss-seam/examples/seambay/view/search.xhtml
  
  Index: search.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/search.css" rel="stylesheet" type="text/css"/>
    </head>
  
    <body>
      <div class="container">
        <ui:include src="header.xhtml"/>  
        
        <div class="banner"></div>
  
        <div id="searchHeader">
          <h:form>
            <h:inputText id="searchTerm" value="#{auctionSearch.searchTerm}" styleClass="searchTerm"/>
            <h:commandButton action="#{auctionSearch.queryAuctions}" value="Search"/>
          </h:form>
        </div>
        
        <div id="searchSidebar">
          <div class="sidebarHeading">
            Matching Categories
          </div>
          
          <ui:repeat value="#{auctionSearch.searchCategories}" var="cat">
            <div><s:link action="#{auctionSearch.selectCategory(cat)}" value="#{cat.key.name}"/> (#{cat.value})</div>
          </ui:repeat>
        </div>
  
        <div id="searchResults">
        
        	<h:dataTable id="auctions" 
        	             value="#{auctionSearch.results}" 
        	             var="auction" 
        	             cellspacing="0px"
        	             rowClasses="resultRowOdd,resultRowEven"
        	             columnClasses="imageColumn,itemColumn,bidsColumn,priceColumn,timeColumn">
        	  <h:column>
        	    <s:graphicImage rendered="#{auction.image ne null}" value="#{auction.image.data}">
                <s:transformImageSize width="80" maintainRatio="true"/>
        	    </s:graphicImage>
        	  </h:column>
        		<h:column>
        			<f:facet name="header">Item</f:facet>
        			<s:link value="#{auction.title}"/>
        		</h:column>
        		<h:column>
        			<f:facet name="header">Bids</f:facet>
        			#{auction.bids}
        		</h:column>
        		<h:column>
        			<f:facet name="header">Price</f:facet>
        			#{auction.price}
        		</h:column> 
        		<h:column>
        			<f:facet name="header">Time left</f:facet>
        			#{auction.timeLeft}
        		</h:column>
        	</h:dataTable>      
        
        </div>          
      </div>
    </body>
  </html>
  
  
  



More information about the jboss-cvs-commits mailing list