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

Gavin King gavin.king at jboss.com
Wed Nov 1 12:26:00 EST 2006


  User: gavin   
  Date: 06/11/01 12:26:00

  Modified:    examples/booking/view         book.xhtml confirm.xhtml
                        home.xhtml hotel.xhtml main.xhtml password.xhtml
                        register.xhtml template.xhtml
  Log:
  add ids for selenium
  
  Revision  Changes    Path
  1.21      +2 -2      jboss-seam/examples/booking/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/booking/view/book.xhtml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -b -r1.20 -r1.21
  --- book.xhtml	28 Oct 2006 01:23:56 -0000	1.20
  +++ book.xhtml	1 Nov 2006 17:26:00 -0000	1.21
  @@ -165,8 +165,8 @@
   		<div class="entry">
   			<div class="label">&#160;</div>
   			<div class="input">
  -				<h:commandButton value="Proceed" action="#{hotelBooking.setBookingDetails}" class="button"/>&#160;
  -				<s:link value="Cancel" action="#{hotelBooking.cancel}" buttonClass="button" linkStyle="button"/>
  +				<h:commandButton id="proceed" value="Proceed" action="#{hotelBooking.setBookingDetails}" class="button"/>&#160;
  +				<s:link id="cancel" value="Cancel" action="#{hotelBooking.cancel}" buttonClass="button" linkStyle="button"/>
   			</div>
   		</div>		
   	</fieldset>
  
  
  
  1.12      +4 -4      jboss-seam/examples/booking/view/confirm.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: confirm.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/confirm.xhtml,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- confirm.xhtml	11 Oct 2006 21:01:19 -0000	1.11
  +++ confirm.xhtml	1 Nov 2006 17:26:00 -0000	1.12
  @@ -12,7 +12,7 @@
   	<h1>Confirm Hotel Booking</h1>
   </div>
   <div class="section">
  -	<h:form>
  +	<h:form id="confirm">
   	<fieldset>
   		<div class="entry">
   			<div class="label">Name:</div>
  @@ -49,9 +49,9 @@
   		<div class="entry">
   			<div class="label">&#160;</div>
   			<div class="input">
  -				<h:commandButton value="Confirm" action="#{hotelBooking.confirm}" class="button"/>&#160;
  -    			<h:commandButton value="Revise" action="back" class="button"/>&#160;
  -    			<h:commandButton value="Cancel" action="#{hotelBooking.cancel}" class="button"/>
  +				<h:commandButton id="confirm" value="Confirm" action="#{hotelBooking.confirm}" class="button"/>&#160;
  +    			<h:commandButton id="revise" value="Revise" action="back" class="button"/>&#160;
  +    			<h:commandButton id="cancel" value="Cancel" action="#{hotelBooking.cancel}" class="button"/>
   			</div>
   		</div>
   	</fieldset>
  
  
  
  1.7       +3 -3      jboss-seam/examples/booking/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/booking/view/home.xhtml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- home.xhtml	24 Jun 2006 10:31:56 -0000	1.6
  +++ home.xhtml	1 Nov 2006 17:26:00 -0000	1.7
  @@ -16,7 +16,7 @@
   	</div>
   	<div id="container">
   		<div id="sidebar">
  -            <h:form>
  +            <h:form id="login">
   			<fieldset>
   				<div>
   					<h:outputLabel for="username">Login Name</h:outputLabel>
  @@ -28,8 +28,8 @@
   					<h:inputSecret id="password" value="#{user.password}" style="width: 175px;"/>
   				</div>
   				<div class="errors"><h:messages globalOnly="true"/></div>
  -				<div class="buttonBox"><h:commandButton action="#{login.login}" value="Account Login" class="button" /></div>
  -				<div class="notes"><h:commandLink action="register">Register New User</h:commandLink></div>
  +				<div class="buttonBox"><h:commandButton id="login" action="#{login.login}" value="Account Login" class="button" /></div>
  +				<div class="notes"><h:commandLink id="register" action="register">Register New User</h:commandLink></div>
   			</fieldset>
               </h:form>
   		</div>
  
  
  
  1.10      +3 -3      jboss-seam/examples/booking/view/hotel.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: hotel.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/hotel.xhtml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- hotel.xhtml	2 Oct 2006 05:29:44 -0000	1.9
  +++ hotel.xhtml	1 Nov 2006 17:26:00 -0000	1.10
  @@ -38,10 +38,10 @@
   	</div>
   </div>
   <div class="section">
  -	<h:form>
  +	<h:form id="hotel">
   	<fieldset class="buttonBox">
  -		<h:commandButton action="#{hotelBooking.bookHotel}" value="Book Hotel" class="button"/>&#160;
  -		<h:commandButton action="#{hotelBooking.cancel}" value="Back to Search" class="button"/>
  +		<h:commandButton id="bookHotel" action="#{hotelBooking.bookHotel}" value="Book Hotel" class="button"/>&#160;
  +		<h:commandButton id="cancel" action="#{hotelBooking.cancel}" value="Back to Search" class="button"/>
   	</fieldset>
   	</h:form>
   </div>
  
  
  
  1.24      +8 -8      jboss-seam/examples/booking/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/booking/view/main.xhtml,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -b -r1.23 -r1.24
  --- main.xhtml	22 Oct 2006 11:02:31 -0000	1.23
  +++ main.xhtml	1 Nov 2006 17:26:00 -0000	1.24
  @@ -11,7 +11,7 @@
   <ui:define name="content">
   
   <div class="section">
  -  <h:form>
  +  <h:form id="main">
     
       <span class="errors">
          <h:messages globalOnly="true"/>
  @@ -19,11 +19,11 @@
       
   	<h1>Search Hotels</h1>
   	<fieldset> 
  -	   <h:inputText value="#{hotelSearch.searchString}" style="width: 165px;">
  +	   <h:inputText id="searchString" value="#{hotelSearch.searchString}" style="width: 165px;">
            <a:support event="onkeyup" actionListener="#{hotelSearch.find}" reRender="searchResults" />
          </h:inputText>
          &#160;
  -	   <a:commandButton value="Find Hotels" action="#{hotelSearch.find}" styleClass="button" reRender="searchResults"/>
  +	   <a:commandButton id="findHotels" value="Find Hotels" action="#{hotelSearch.find}" styleClass="button" reRender="searchResults"/>
          &#160;
          <a:status>
             <f:facet name="start">
  @@ -45,7 +45,7 @@
   <a:outputPanel id="searchResults">
     <div class="section">
   	<h:outputText value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
  -	<h:dataTable value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
  +	<h:dataTable id="hotels" value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
   		<h:column>
   			<f:facet name="header">Name</f:facet>
   			#{hot.name}
  @@ -64,7 +64,7 @@
   		</h:column>
   		<h:column>
   			<f:facet name="header">Action</f:facet>
  -			<s:link value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
  +			<s:link id="viewHotel" value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
   		</h:column>
   	</h:dataTable>
   	<s:link value="More results" action="#{hotelSearch.nextPage}" rendered="#{hotelSearch.nextPageAvailable}"/>
  @@ -75,9 +75,9 @@
   	<h1>Current Hotel Bookings</h1>
   </div>
   <div class="section">
  -  <h:form>
  +  <h:form id="bookings">
   	<h:outputText value="No Bookings Found" rendered="#{bookings.rowCount==0}"/>
  -	<h:dataTable value="#{bookings}" var="book" rendered="#{bookings.rowCount>0}">
  +	<h:dataTable id="bookings" value="#{bookings}" var="book" rendered="#{bookings.rowCount>0}">
   		<h:column>
   			<f:facet name="header">Name</f:facet>
   			#{book.hotel.name}
  @@ -104,7 +104,7 @@
   		</h:column>
   		<h:column>
   			<f:facet name="header">Action</f:facet>
  -			<h:commandLink value="Cancel" action="#{bookingList.cancel}"/>
  +			<h:commandLink id="cancel" value="Cancel" action="#{bookingList.cancel}"/>
   		</h:column>
   	</h:dataTable>
     </h:form>
  
  
  
  1.7       +3 -3      jboss-seam/examples/booking/view/password.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: password.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/password.xhtml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- password.xhtml	2 Oct 2006 05:29:44 -0000	1.6
  +++ password.xhtml	1 Nov 2006 17:26:00 -0000	1.7
  @@ -12,7 +12,7 @@
   	<h1>Change Your Password</h1>
   </div>
   <div class="section">
  -	<h:form>
  +	<h:form id="password">
   	
   	    <f:facet name="afterInvalidField">
   	       <s:message/>
  @@ -52,8 +52,8 @@
   			<div class="entry">
   				<div class="label">&#160;</div>
   				<div class="input">
  -					<h:commandButton value="Change" action="#{changePassword.changePassword}" class="button"/>&#160;
  -					<s:link value="Cancel" action="#{changePassword.cancel}" linkStyle="button" buttonClass="button"/>
  +					<h:commandButton id="change" value="Change" action="#{changePassword.changePassword}" class="button"/>&#160;
  +					<s:link id="cancel" value="Cancel" action="#{changePassword.cancel}" linkStyle="button" buttonClass="button"/>
   				</div>
   			</div>
   			
  
  
  
  1.14      +7 -5      jboss-seam/examples/booking/view/register.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: register.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/booking/view/register.xhtml,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -b -r1.13 -r1.14
  --- register.xhtml	17 Oct 2006 12:48:48 -0000	1.13
  +++ register.xhtml	1 Nov 2006 17:26:00 -0000	1.14
  @@ -11,7 +11,6 @@
   	<link href="css/screen.css" rel="stylesheet" type="text/css" />
   </head>
   <body id="pgHome">
  -<h:form>
   <div id="document">
   	<div id="header">
   		<div id="title"><img src="img/hdr.title.gif" /></div>
  @@ -39,6 +38,8 @@
   				<h1>Register</h1>
   			</div>
   			<div class="section">
  +                
  +                <h:form id="register">
   				<fieldset>
   				
   					<s:validateAll>
  @@ -104,17 +105,18 @@
   					<div class="entry">
   						<div class="label">&#160;</div>
   						<div class="input">
  -							<h:commandButton value="Register" action="#{register.register}" class="button"/>&#160;
  -							<s:link value="Cancel" action="login" linkStyle="button" buttonClass="button"/>
  +							<h:commandButton id="register" value="Register" action="#{register.register}" class="button"/>&#160;
  +							<s:link id="cancel" value="Cancel" action="login" linkStyle="button" buttonClass="button"/>
   						</div>
   					</div>
   					
   				</fieldset>
  +                </h:form>
  +                
   			</div>			
   		</div>
   	</div>
   	<div id="footer">Created with JBoss EJB 3.0, Seam, MyFaces, and Facelets</div>
   </div>
  -</h:form>
   </body>
   </html>
  
  
  
  1.6       +4 -4      jboss-seam/examples/booking/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/booking/view/template.xhtml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- template.xhtml	24 Apr 2006 22:17:18 -0000	1.5
  +++ template.xhtml	1 Nov 2006 17:26:00 -0000	1.6
  @@ -13,11 +13,11 @@
   	<div id="header">
   		<div id="title"><img src="img/hdr.title.gif" /></div>
   		<div id="status">
  -		    <h:form>
  +		    <h:form id="navigation">
   		    	Welcome #{user.name}
  -			    | <h:outputLink value="main.seam">Search</h:outputLink>
  -			    | <h:outputLink value="password.seam">Settings</h:outputLink>
  -			    | <h:commandLink action="#{logout.logout}">Logout</h:commandLink>
  +			    | <h:outputLink id="main" value="main.seam">Search</h:outputLink>
  +			    | <h:outputLink id="password" value="password.seam">Settings</h:outputLink>
  +			    | <h:commandLink id="logout" action="#{logout.logout}">Logout</h:commandLink>
   		    </h:form>
   		</div>
   	</div>
  
  
  



More information about the jboss-cvs-commits mailing list