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

Norman Richards norman.richards at jboss.com
Tue Feb 20 01:16:28 EST 2007


  User: nrichards
  Date: 07/02/20 01:16:28

  Modified:    examples/spring/view   book.xhtml main.xhtml
  Log:
  make booking work
  
  Revision  Changes    Path
  1.2       +151 -171  jboss-seam/examples/spring/view/book.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: book.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/spring/view/book.xhtml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- book.xhtml	19 Feb 2007 23:29:00 -0000	1.1
  +++ book.xhtml	20 Feb 2007 06:16:28 -0000	1.2
  @@ -4,15 +4,14 @@
   	  			xmlns:h="http://java.sun.com/jsf/html"
   	  			xmlns:f="http://java.sun.com/jsf/core"
   	  			xmlns:s="http://jboss.com/products/seam/taglib"
  -                xmlns:a="https://ajax4jsf.dev.java.net/ajax"
   				template="template.xhtml">
   
  -<!-- content -->
  -<ui:define name="content">
  -<div class="section">
  +    <!-- content -->
  +    <ui:define name="content">
  +        <div class="section">
   	<h1>Book Hotel</h1>
  -</div>
  -<div class="section">
  +        </div>
  +        <div class="section">
   	<h:form id="booking">
   	<fieldset>
   		<div class="entry">
  @@ -57,13 +56,12 @@
                                   <s:decorate>
                                       <h:inputText id="checkinDate" value="#{booking.checkinDate}" required="true">
                                           <s:convertDateTime pattern="MM/dd/yyyy"/>
  -                                        <a:support event="onblur" reRender="checkinDateErrors"/>
                                       </h:inputText>
                                       <s:selectDate for="checkinDate">
                                           <h:graphicImage url="img/dtpick.gif" style="margin-left:5px"/>
                                       </s:selectDate>
                                       <br/>
  -                                    <a:outputPanel id="checkinDateErrors"><s:message/></a:outputPanel>
  +                                    <s:message/>
                                   </s:decorate>
                               </div>
   			</div>
  @@ -74,13 +72,11 @@
                                   <s:decorate>
                                       <h:inputText id="checkoutDate" value="#{booking.checkoutDate}" required="true">
                                           <s:convertDateTime pattern="MM/dd/yyyy"/>
  -                                        <a:support event="onblur" reRender="checkoutDateErrors"/>
                                       </h:inputText>
                                       <s:selectDate for="checkoutDate">
                                           <h:graphicImage url="img/dtpick.gif" style="margin-left:5px"/>
                                       </s:selectDate>
                                       <br/>
  -                                    <a:outputPanel id="checkoutDateErrors"><s:message/></a:outputPanel>
                                   </s:decorate>
                               </div>
                           </div>
  @@ -117,10 +113,9 @@
   				<div class="input">
   					<s:decorate>
   						<h:inputText id="creditCard" value="#{booking.creditCard}" required="true">
  -                           <a:support event="onblur" reRender="creditCardErrors"/>
                           </h:inputText>
   						<br/>
  -                        <a:outputPanel id="creditCardErrors"><s:message/></a:outputPanel>
  +                                    <s:message />
   					</s:decorate>
   				</div>
   			</div>
  @@ -130,10 +125,9 @@
   				<div class="input">
   					<s:decorate>
   						<h:inputText id="creditCardName" value="#{booking.creditCardName}" required="true">
  -                           <a:support event="onblur" reRender="creditCardNameErrors"/>
                           </h:inputText>
   						<br/>
  -                        <a:outputPanel id="creditCardNameErrors"><s:message/></a:outputPanel>
  +                                    <s:message/>
   					</s:decorate>
   				</div>
   			</div>
  @@ -183,24 +177,10 @@
   		</div>		
   	</fieldset>
   	</h:form>
  -</div>
  -</ui:define>
  -
  -<!-- sidebar -->
  -<ui:define name="sidebar">
  -
  -<h1>Workspace management</h1>
  -<p>
  -   As you can see, Seam makes it easy to work in multiple windows or multiple browser 
  -   tabs. But you can even switch between multiple tasks inside a single browser tab!
  -   The "Workspaces" section showcases this advanced feature.
  -</p>
  -<p>
  -   <a href="#" onclick="window.open('exp/workspaceExp.html','exp','width=752,height=500,scrollbars=yes');">
  -      How does the workspace list work?
  -   </a>
  -</p>
  +        </div>
  +    </ui:define>
   
  -</ui:define>
  +    <!-- sidebar -->
  +    <ui:define name="sidebar"> </ui:define>
   
   </ui:composition>
  
  
  
  1.4       +1 -1      jboss-seam/examples/spring/view/main.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: main.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/spring/view/main.xhtml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- main.xhtml	20 Feb 2007 00:21:10 -0000	1.3
  +++ main.xhtml	20 Feb 2007 06:16:28 -0000	1.4
  @@ -63,7 +63,7 @@
           </div>
           
           <div class="section">
  -            <h1>Current Hotel Bookings</h1>
  +            <h1>Current Hotel Bookings:</h1>
           </div>
           <div class="section">
               <h:form id="bookings">
  
  
  



More information about the jboss-cvs-commits mailing list