Author: jharting
Date: 2008-10-02 08:44:00 -0400 (Thu, 02 Oct 2008)
New Revision: 9175
Modified:
trunk/examples/spring/view/book.xhtml
trunk/examples/spring/view/conversations.xhtml
trunk/examples/spring/view/main.xhtml
trunk/examples/spring/view/password.xhtml
trunk/examples/spring/view/register.xhtml
Log:
JBSEAM-3431 Added ids for spring example.
Modified: trunk/examples/spring/view/book.xhtml
===================================================================
--- trunk/examples/spring/view/book.xhtml 2008-10-02 12:40:13 UTC (rev 9174)
+++ trunk/examples/spring/view/book.xhtml 2008-10-02 12:44:00 UTC (rev 9175)
@@ -48,13 +48,13 @@
<s:validateAll>
<f:facet name="aroundInvalidField">
- <s:span styleClass="errors"/>
+ <s:span id="Error"
styleClass="errors"/>
</f:facet>
<div class="entry">
<div class="label"><h:outputLabel
for="checkinDate">Check In Date:</h:outputLabel></div>
<div class="input">
- <s:decorate>
+ <s:decorate id="checkinDateDecorate">
<rich:calendar id="checkinDate"
value="#{booking.checkinDate}" required="true"
datePattern="MM/dd/yyyy" event="onblur"
reRender="checkinDateDecorate" />
<br/>
<s:message/>
@@ -65,7 +65,7 @@
<div class="entry">
<div class="label"><h:outputLabel
for="checkoutDate">Check Out Date:</h:outputLabel></div>
<div class="input">
- <s:decorate>
+ <s:decorate id="checkoutDateDecorate">
<rich:calendar id="checkoutDate"
value="#{booking.checkoutDate}" required="true"
datePattern="MM/dd/yyyy" event="onblur"
reRender="checkoutDateDecorate" />
<br/>
<s:message/>
@@ -76,7 +76,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"/>
@@ -90,7 +90,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"/>
@@ -103,7 +103,7 @@
<div class="entry">
<div class="label"><h:outputLabel
for="creditCard">Credit Card #:</h:outputLabel></div>
<div class="input">
- <s:decorate>
+ <s:decorate id="creditCardDecorate">
<h:inputText id="creditCard"
value="#{booking.creditCard}" required="true">
</h:inputText>
<br/>
@@ -115,7 +115,7 @@
<div class="entry">
<div class="label"><h:outputLabel
for="creditCardName">Credit Card Name:</h:outputLabel></div>
<div class="input">
- <s:decorate>
+ <s:decorate id="creditCardNameDecorate">
<h:inputText id="creditCardName"
value="#{booking.creditCardName}" required="true">
</h:inputText>
<br/>
@@ -127,7 +127,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"/>
@@ -157,7 +157,7 @@
</s:validateAll>
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="Messages"
globalOnly="true"/>
</div>
<div class="entry">
Modified: trunk/examples/spring/view/conversations.xhtml
===================================================================
--- trunk/examples/spring/view/conversations.xhtml 2008-10-02 12:40:13 UTC (rev 9174)
+++ trunk/examples/spring/view/conversations.xhtml 2008-10-02 12:44:00 UTC (rev 9175)
@@ -12,19 +12,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}"/>
 
- <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/spring/view/main.xhtml
===================================================================
--- trunk/examples/spring/view/main.xhtml 2008-10-02 12:40:13 UTC (rev 9174)
+++ trunk/examples/spring/view/main.xhtml 2008-10-02 12:44:00 UTC (rev 9175)
@@ -12,7 +12,7 @@
<h:form id="main">
<span class="errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages"
globalOnly="true"/>
</span>
<h1>Search Hotels</h1>
@@ -36,7 +36,7 @@
<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>
@@ -59,7 +59,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>
<div class="section">
Modified: trunk/examples/spring/view/password.xhtml
===================================================================
--- trunk/examples/spring/view/password.xhtml 2008-10-02 12:40:13 UTC (rev 9174)
+++ trunk/examples/spring/view/password.xhtml 2008-10-02 12:44:00 UTC (rev 9175)
@@ -12,13 +12,13 @@
<h1>Change Your Password</h1>
</div>
<div class="section">
- <h:form id="password">
+ <h:form id="setpassword">
<f:facet name="afterInvalidField">
- <s:message/>
+ <s:message id="Message"/>
</f:facet>
<f:facet name="aroundInvalidField">
- <s:span styleClass="errors"/>
+ <s:span id="Error" styleClass="errors"/>
</f:facet>
<fieldset>
@@ -26,7 +26,7 @@
<div class="entry">
<div class="label"><h:outputLabel
for="password">New 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>
@@ -38,7 +38,7 @@
<div class="entry">
<div class="label"><h:outputLabel
for="password">Old Password:</h:outputLabel></div>
<div class="input">
- <s:decorate>
+ <s:decorate id="VerifyDecorate">
<h:inputSecret id="verify"
value="#{changePassword.verify}" required="true"/>
<br/>
</s:decorate>
@@ -46,7 +46,7 @@
</div>
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="Messages"
globalOnly="true"/>
</div>
<div class="entry">
Modified: trunk/examples/spring/view/register.xhtml
===================================================================
--- trunk/examples/spring/view/register.xhtml 2008-10-02 12:40:13 UTC (rev 9174)
+++ trunk/examples/spring/view/register.xhtml 2008-10-02 12:44:00 UTC (rev 9175)
@@ -46,7 +46,7 @@
<div class="entry">
<div class="label"><h:outputLabel
for="username">Username:</h:outputLabel></div>
<div class="input">
- <s:decorate>
+ <s:decorate id="usernameDecorate">
<h:inputText id="username" value="#{user.username}"
required="true">
<a:support event="onblur"
reRender="usernameErrors"/>
</h:inputText>
@@ -59,7 +59,7 @@
<div class="entry">
<div class="label"><h:outputLabel for="name">Real
Name:</h:outputLabel></div>
<div class="input">
- <s:decorate>
+ <s:decorate id="nameDecorate">
<h:inputText id="name" value="#{user.name}"
required="true">
<a:support event="onblur"
reRender="nameErrors"/>
</h:inputText>
@@ -72,7 +72,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"/>
<br/>
<h:message for="password"/>
@@ -83,7 +83,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"/>
<br/>
<h:message for="verify"/>
@@ -94,7 +94,7 @@
</s:validateAll>
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<div class="entry">