[seam-commits] Seam SVN: r9098 - trunk/examples/groovybooking/view.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Sep 22 11:10:09 EDT 2008


Author: jharting
Date: 2008-09-22 11:10:09 -0400 (Mon, 22 Sep 2008)
New Revision: 9098

Modified:
   trunk/examples/groovybooking/view/book.xhtml
   trunk/examples/groovybooking/view/conversations.xhtml
   trunk/examples/groovybooking/view/main.xhtml
   trunk/examples/groovybooking/view/password.xhtml
   trunk/examples/groovybooking/view/register.xhtml
Log:
JBSEAM-3431 Added ids for groovybooking example.

Modified: trunk/examples/groovybooking/view/book.xhtml
===================================================================
--- trunk/examples/groovybooking/view/book.xhtml	2008-09-22 11:14:43 UTC (rev 9097)
+++ trunk/examples/groovybooking/view/book.xhtml	2008-09-22 15:10:09 UTC (rev 9098)
@@ -49,10 +49,10 @@
 		<s:validateAll>
     
             <f:facet name="aroundInvalidField">
-                <s:span styleClass="errors"/>
+                <s:span id="Error" styleClass="errors"/>
             </f:facet>
             <f:facet name="afterInvalidField">
-                <s:div styleClass="errors">
+                <s:div id="Message" styleClass="errors">
                	    <s:message/>
                	</s:div>
             </f:facet>
@@ -78,7 +78,7 @@
 			<div class="entry">
 				<div class="label"><h:outputLabel for="beds">Room Preference:</h:outputLabel></div>
 				<div class="input">
-					<s:decorate>
+					<s:decorate id="bedsDecorate">
 						<h:selectOneMenu id="beds" value="#{booking.beds}">
 							<f:selectItem itemLabel="One king-size bed" itemValue="1"/>
 							<f:selectItem itemLabel="Two double beds" itemValue="2"/>
@@ -91,7 +91,7 @@
 			<div class="entry">
 				<div class="label"><h:outputLabel for="smoking">Smoking Preference:</h:outputLabel></div>
 				<div id="radio" class="input">
-					<s:decorate>
+					<s:decorate id="smokingDecorate">
 						<h:selectOneRadio id="smoking" value="#{booking.smoking}" layout="pageDirection">
 							<f:selectItem itemLabel="Smoking" itemValue="true"/>
 							<f:selectItem itemLabel="Non Smoking" itemValue="false"/>
@@ -125,7 +125,7 @@
 			<div class="entry">
 				<div class="label"><h:outputLabel for="creditCardExpiryMonth">Credit Card Expiry:</h:outputLabel></div>
 				<div class="input">
-					<s:decorate>
+					<s:decorate id="creditCardExpiryDecorate">
 						<h:selectOneMenu id="creditCardExpiryMonth" value="#{booking.creditCardExpiryMonth}">
 							<f:selectItem itemLabel="Jan" itemValue="1"/>
 							<f:selectItem itemLabel="Feb" itemValue="2"/>

Modified: trunk/examples/groovybooking/view/conversations.xhtml
===================================================================
--- trunk/examples/groovybooking/view/conversations.xhtml	2008-09-22 11:14:43 UTC (rev 9097)
+++ trunk/examples/groovybooking/view/conversations.xhtml	2008-09-22 15:10:09 UTC (rev 9098)
@@ -11,19 +11,19 @@
 </div>
 
 <div class="section">
-    <h:form>
-        <h:dataTable value="#{conversationList}" var="entry">
-            <h:column>
-                <h:commandLink action="#{entry.select}" value="#{entry.description}"/>
+    <h:form id="ConversationListForm">
+        <h:dataTable id="ConversationListDataTable" value="#{conversationList}" var="entry">
+            <h:column id="column1">
+                <h:commandLink id="EntryDescriptionLink" action="#{entry.select}" value="#{entry.description}"/>
                 &#160;
-                <h:outputText value="[current]" rendered="#{entry.current}"/>
+                <h:outputText id="CurrentEntry" value="[current]" rendered="#{entry.current}"/>
             </h:column>
-            <h:column>
-                <h:outputText value="#{entry.startDatetime}">
+            <h:column id="column2">
+                <h:outputText id="EntryStartDateTime" value="#{entry.startDatetime}">
                     <s:convertDateTime type="time" pattern="hh:mm"/>
                 </h:outputText>
                 -
-                <h:outputText value="#{entry.lastDatetime}">
+                <h:outputText id="EntryLastDateTime" value="#{entry.lastDatetime}">
                     <s:convertDateTime type="time" pattern="hh:mm"/>
                 </h:outputText>
             </h:column>

Modified: trunk/examples/groovybooking/view/main.xhtml
===================================================================
--- trunk/examples/groovybooking/view/main.xhtml	2008-09-22 11:14:43 UTC (rev 9097)
+++ trunk/examples/groovybooking/view/main.xhtml	2008-09-22 15:10:09 UTC (rev 9098)
@@ -14,7 +14,7 @@
   <h:form id="main">
   
     <span class="errors">
-       <h:messages globalOnly="true"/>
+       <h:messages id="messages" globalOnly="true"/>
     </span>
     
 	<h1>Search Hotels</h1>
@@ -27,7 +27,7 @@
        &#160;
        <a:status>
           <f:facet name="start">
-             <h:graphicImage value="/img/spinner.gif"/>
+             <h:graphicImage id="Spinner" value="/img/spinner.gif"/>
           </f:facet>
        </a:status>
 	   <br/>
@@ -44,7 +44,7 @@
 
 <a:outputPanel id="searchResults">
   <div class="section">
-	<h:outputText value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
+	<h:outputText id="NoHotelsFoundMessage" value="No Hotels Found" rendered="#{hotels != null and hotels.rowCount==0}"/>
 	<h:dataTable id="hotels" value="#{hotels}" var="hot" rendered="#{hotels.rowCount>0}">
 		<h:column>
 			<f:facet name="header">Name</f:facet>
@@ -67,7 +67,7 @@
 			<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}"/>
+	<s:link id="MoreResultsLink" value="More results" action="#{hotelSearch.nextPage}" rendered="#{hotelSearch.nextPageAvailable}"/>
   </div>
 </a:outputPanel>
 

Modified: trunk/examples/groovybooking/view/password.xhtml
===================================================================
--- trunk/examples/groovybooking/view/password.xhtml	2008-09-22 11:14:43 UTC (rev 9097)
+++ trunk/examples/groovybooking/view/password.xhtml	2008-09-22 15:10:09 UTC (rev 9098)
@@ -15,10 +15,10 @@
 	<h:form id="setpassword">
 	
 	    <f:facet name="aroundInvalidField">
-            <s:span styleClass="errors"/>
+            <s:span id="Error" styleClass="errors"/>
 	    </f:facet>
  	    <f:facet name="afterInvalidField">
-            <s:div styleClass="errors">
+            <s:div id="Message" styleClass="errors">
                 <s:message/>
             </s:div>
  	    </f:facet>
@@ -28,7 +28,7 @@
 			<div class="entry">
 				<div class="label"><h:outputLabel for="password">Password:</h:outputLabel></div>
 				<div class="input">
-					<s:decorate>
+					<s:decorate id="PasswordDecorate">
 						<h:inputSecret id="password" value="#{user.password}" required="true">
 							<s:validate/>
 						</h:inputSecret>
@@ -39,14 +39,14 @@
 			<div class="entry">
 				<div class="label"><h:outputLabel for="verify">Verify:</h:outputLabel></div>
 				<div class="input">
-					<s:decorate>
+					<s:decorate id="VerifyDecorate">
 						<h:inputSecret id="verify" value="#{changePassword.verify}" required="true"/>
 					</s:decorate>
 				</div>
 			</div>
 			
 			<div class="entry errors">
-				<h:messages globalOnly="true"/>
+				<h:messages id="Messages" globalOnly="true"/>
 			</div>
 			
 			<div class="entry">

Modified: trunk/examples/groovybooking/view/register.xhtml
===================================================================
--- trunk/examples/groovybooking/view/register.xhtml	2008-09-22 11:14:43 UTC (rev 9097)
+++ trunk/examples/groovybooking/view/register.xhtml	2008-09-22 15:10:09 UTC (rev 9098)
@@ -61,7 +61,7 @@
 						<div class="entry">
 							<div class="label"><h:outputLabel for="password">Password:</h:outputLabel></div>
 							<div class="input">
-								<s:decorate>
+								<s:decorate id="passwordDecorate">
 									<h:inputSecret id="password" value="#{user.password}" required="true"/>
 								</s:decorate>
 							</div>
@@ -70,7 +70,7 @@
 						<div class="entry">
 							<div class="label"><h:outputLabel for="verify">Verify Password:</h:outputLabel></div>
 							<div class="input">
-								<s:decorate>
+								<s:decorate id="verifyDecorate">
 									<h:inputSecret id="verify" value="#{register.verify}" required="true"/>
 								</s:decorate>
 							</div>
@@ -79,7 +79,7 @@
 					</s:validateAll>
 					
 					<div class="entry errors">
-						<h:messages globalOnly="true"/>
+						<h:messages id="messages" globalOnly="true"/>
 					</div>
 					
 					<div class="entry">




More information about the seam-commits mailing list