Author: stan.silvert(a)jboss.com
Date: 2008-06-09 15:49:54 -0400 (Mon, 09 Jun 2008)
New Revision: 8366
Modified:
trunk/examples/booking/view/book.xhtml
trunk/examples/booking/view/confirm.xhtml
trunk/examples/booking/view/conversations.xhtml
trunk/examples/booking/view/edit.xhtml
trunk/examples/booking/view/home.xhtml
trunk/examples/booking/view/hotelview.xhtml
trunk/examples/booking/view/main.xhtml
trunk/examples/booking/view/password.xhtml
trunk/examples/booking/view/register.xhtml
Log:
JBSEAM-3048
Modified: trunk/examples/booking/view/book.xhtml
===================================================================
--- trunk/examples/booking/view/book.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/book.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -15,7 +15,7 @@
</div>
<div class="section">
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<ui:include src="hotelview.xhtml"/>
@@ -38,56 +38,56 @@
<s:decorate id="bedsDecorate" template="edit.xhtml">
<ui:define name="label">Room Preference:</ui:define>
<h:selectOneMenu id="beds" value="#{booking.beds}">
- <f:selectItem itemLabel="One king-size bed"
itemValue="1"/>
- <f:selectItem itemLabel="Two double beds" itemValue="2"/>
- <f:selectItem itemLabel="Three beds" itemValue="3"/>
+ <f:selectItem id="OneKingBed" itemLabel="One king-size bed"
itemValue="1"/>
+ <f:selectItem id="TwoDoubleBeds" itemLabel="Two double beds"
itemValue="2"/>
+ <f:selectItem id="ThreeBeds" itemLabel="Three beds"
itemValue="3"/>
</h:selectOneMenu>
</s:decorate>
<s:decorate id="smokingDecorate" template="edit.xhtml">
<ui:define name="label">Smoking Preference:</ui:define>
<h:selectOneRadio id="smoking" value="#{booking.smoking}"
layout="pageDirection" styleClass="radio">
- <f:selectItem itemLabel="Smoking" itemValue="true"/>
- <f:selectItem itemLabel="Non Smoking" itemValue="false"/>
+ <f:selectItem id="Smoking" itemLabel="Smoking"
itemValue="true"/>
+ <f:selectItem id="NonSmoking" itemLabel="Non Smoking"
itemValue="false"/>
</h:selectOneRadio>
</s:decorate>
<s:decorate id="creditCardDecorate" template="edit.xhtml">
<ui:define name="label">Credit Card #:</ui:define>
<h:inputText id="creditCard" value="#{booking.creditCard}"
required="true">
- <a:support event="onblur" reRender="creditCardDecorate"/>
+ <a:support id="onblur" event="onblur"
reRender="creditCardDecorate"/>
</h:inputText>
</s:decorate>
<s:decorate id="creditCardNameDecorate"
template="edit.xhtml">
<ui:define name="label">Credit Card Name:</ui:define>
<h:inputText id="creditCardName"
value="#{booking.creditCardName}" required="true">
- <a:support event="onblur"
reRender="creditCardNameDecorate"/>
+ <a:support id="onblur" event="onblur"
reRender="creditCardNameDecorate"/>
</h:inputText>
</s:decorate>
<s:decorate id="creditCardExpiryDecorate"
template="edit.xhtml">
<ui:define name="label">Credit Card Expiry:</ui:define>
<h:selectOneMenu id="creditCardExpiryMonth"
value="#{booking.creditCardExpiryMonth}">
- <f:selectItem itemLabel="Jan" itemValue="1"/>
- <f:selectItem itemLabel="Feb" itemValue="2"/>
- <f:selectItem itemLabel="Mar" itemValue="3"/>
- <f:selectItem itemLabel="Apr" itemValue="4"/>
- <f:selectItem itemLabel="May" itemValue="5"/>
- <f:selectItem itemLabel="Jun" itemValue="6"/>
- <f:selectItem itemLabel="Jul" itemValue="7"/>
- <f:selectItem itemLabel="Aug" itemValue="8"/>
- <f:selectItem itemLabel="Sep" itemValue="9"/>
- <f:selectItem itemLabel="Oct" itemValue="10"/>
- <f:selectItem itemLabel="Nov" itemValue="11"/>
- <f:selectItem itemLabel="Dec" itemValue="12"/>
+ <f:selectItem id="Jan" itemLabel="Jan"
itemValue="1"/>
+ <f:selectItem id="Feb" itemLabel="Feb"
itemValue="2"/>
+ <f:selectItem id="Mar" itemLabel="Mar"
itemValue="3"/>
+ <f:selectItem id="Apr" itemLabel="Apr"
itemValue="4"/>
+ <f:selectItem id="May" itemLabel="May"
itemValue="5"/>
+ <f:selectItem id="Jun" itemLabel="Jun"
itemValue="6"/>
+ <f:selectItem id="Jul" itemLabel="Jul"
itemValue="7"/>
+ <f:selectItem id="Aug" itemLabel="Aug"
itemValue="8"/>
+ <f:selectItem id="Sep" itemLabel="Sep"
itemValue="9"/>
+ <f:selectItem id="Oct" itemLabel="Oct"
itemValue="10"/>
+ <f:selectItem id="Nov" itemLabel="Nov"
itemValue="11"/>
+ <f:selectItem id="Dec" itemLabel="Dec"
itemValue="12"/>
</h:selectOneMenu>
<h:selectOneMenu id="creditCardExpiryYear"
value="#{booking.creditCardExpiryYear}">
- <f:selectItem itemLabel="2005" itemValue="2005"/>
- <f:selectItem itemLabel="2006" itemValue="2006"/>
- <f:selectItem itemLabel="2007" itemValue="2007"/>
- <f:selectItem itemLabel="2008" itemValue="2008"/>
- <f:selectItem itemLabel="2009" itemValue="2009"/>
+ <f:selectItem id="Year2005" itemLabel="2005"
itemValue="2005"/>
+ <f:selectItem id="Year2006" itemLabel="2006"
itemValue="2006"/>
+ <f:selectItem id="Year2007" itemLabel="2007"
itemValue="2007"/>
+ <f:selectItem id="Year2008" itemLabel="2008"
itemValue="2008"/>
+ <f:selectItem id="Year2009" itemLabel="2009"
itemValue="2009"/>
</h:selectOneMenu>
</s:decorate>
Modified: trunk/examples/booking/view/confirm.xhtml
===================================================================
--- trunk/examples/booking/view/confirm.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/confirm.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -17,24 +17,24 @@
<ui:include src="hotelview.xhtml"/>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateTotalPayment"
template="display.xhtml">
<ui:define name="label">Total Payment:</ui:define>
- <h:outputText value="#{booking.total}">
+ <h:outputText id="BookingTotal" value="#{booking.total}">
<f:convertNumber type="currency" currencySymbol="$"/>
</h:outputText>
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateCheckInDate"
template="display.xhtml">
<ui:define name="label">Check In Date:</ui:define>
- <h:outputText value="#{booking.checkinDate}"/>
+ <h:outputText id="BookingCheckinDate"
value="#{booking.checkinDate}"/>
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateCheckoutDate"
template="display.xhtml">
<ui:define name="label">Check Out Date:</ui:define>
- <h:outputText value="#{booking.checkoutDate}"/>
+ <h:outputText id="BookingCheckoutDate"
value="#{booking.checkoutDate}"/>
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateCreditCard" template="display.xhtml">
<ui:define name="label">Credit Card #:</ui:define>
#{booking.creditCard}
</s:decorate>
Modified: trunk/examples/booking/view/conversations.xhtml
===================================================================
--- trunk/examples/booking/view/conversations.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/conversations.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -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/booking/view/edit.xhtml
===================================================================
--- trunk/examples/booking/view/edit.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/edit.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -6,16 +6,16 @@
xmlns:s="http://jboss.com/products/seam/taglib">
<div class="entry">
- <s:label styleClass="label
#{invalid?'errors':''}">
+ <s:label id="Label" styleClass="label
#{invalid?'errors':''}">
<ui:insert name="label"/>
- <s:span styleClass="required"
rendered="#{required}">*</s:span>
+ <s:span id="RequiredStyle" styleClass="required"
rendered="#{required}">*</s:span>
</s:label>
<span class="input #{invalid?'errors':''}">
- <s:validateAll>
+ <s:validateAll id="ValidateAll">
<ui:insert/>
</s:validateAll>
</span>
- <s:message styleClass="error errors"/>
+ <s:message id="message" styleClass="error errors"/>
</div>
</ui:composition>
\ No newline at end of file
Modified: trunk/examples/booking/view/home.xhtml
===================================================================
--- trunk/examples/booking/view/home.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/home.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -20,15 +20,15 @@
<h:form id="login">
<fieldset>
<div>
- <h:outputLabel for="username">Login Name</h:outputLabel>
+ <h:outputLabel id="UsernameLabel" for="username">Login
Name</h:outputLabel>
<h:inputText id="username" value="#{identity.username}"
style="width: 175px;"/>
- <div class="errors"><h:message
for="username"/></div>
+ <div class="errors"><h:message id="UsernameMessage"
for="username"/></div>
</div>
<div>
- <h:outputLabel for="password">Password</h:outputLabel>
+ <h:outputLabel id="PasswordLabel"
for="password">Password</h:outputLabel>
<h:inputSecret id="password" value="#{identity.password}"
style="width: 175px;"/>
</div>
- <div class="errors"><h:messages
globalOnly="true"/></div>
+ <div class="errors"><h:messages id="messages"
globalOnly="true"/></div>
<div class="buttonBox"><h:commandButton id="login"
action="#{identity.login}" value="Account Login"/></div>
<div class="notes"><s:link id="register"
view="/register.xhtml" value="Register New User"/></div>
</fieldset>
Modified: trunk/examples/booking/view/hotelview.xhtml
===================================================================
--- trunk/examples/booking/view/hotelview.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/hotelview.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -5,39 +5,39 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib">
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateName" template="display.xhtml">
<ui:define name="label">Name:</ui:define>
#{hotel.name}
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateAddress" template="display.xhtml">
<ui:define name="label">Address:</ui:define>
#{hotel.address}
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateCity" template="display.xhtml">
<ui:define name="label">City:</ui:define>
#{hotel.city}
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateState" template="display.xhtml">
<ui:define name="label">State:</ui:define>
#{hotel.state}
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateZip" template="display.xhtml">
<ui:define name="label">Zip:</ui:define>
#{hotel.zip}
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateCountry" template="display.xhtml">
<ui:define name="label">Country:</ui:define>
#{hotel.country}
</s:decorate>
- <s:decorate template="display.xhtml">
+ <s:decorate id="DecorateNightlyRate"
template="display.xhtml">
<ui:define name="label">Nightly rate:</ui:define>
- <h:outputText value="#{hotel.price}">
+ <h:outputText id="HotelPrice" value="#{hotel.price}">
<f:convertNumber type="currency" currencySymbol="$"/>
</h:outputText>
</s:decorate>
Modified: trunk/examples/booking/view/main.xhtml
===================================================================
--- trunk/examples/booking/view/main.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/main.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -13,7 +13,7 @@
<div class="section">
<span class="errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</span>
<h1>Search Hotels</h1>
@@ -21,22 +21,22 @@
<h:form id="searchCriteria">
<fieldset>
<h:inputText id="searchString"
value="#{hotelSearch.searchString}" style="width: 165px;">
- <a:support event="onkeyup"
actionListener="#{hotelSearch.find}" reRender="searchResults" />
+ <a:support id="onkeyup" event="onkeyup"
actionListener="#{hotelSearch.find}" reRender="searchResults" />
</h:inputText>
 
<a:commandButton id="findHotels" value="Find Hotels"
action="#{hotelSearch.find}" reRender="searchResults"/>
 
- <a:status>
- <f:facet name="start">
- <h:graphicImage value="/img/spinner.gif"/>
+ <a:status id="status">
+ <f:facet id="StartStatus" name="start">
+ <h:graphicImage id="SpinnerGif"
value="/img/spinner.gif"/>
</f:facet>
</a:status>
<br/>
- <h:outputLabel for="pageSize">Maximum
results:</h:outputLabel> 
- <h:selectOneMenu value="#{hotelSearch.pageSize}"
id="pageSize">
- <f:selectItem itemLabel="5" itemValue="5"/>
- <f:selectItem itemLabel="10" itemValue="10"/>
- <f:selectItem itemLabel="20" itemValue="20"/>
+ <h:outputLabel id="MaximumResultsLabel"
for="pageSize">Maximum results:</h:outputLabel> 
+ <h:selectOneMenu id="pageSize"
value="#{hotelSearch.pageSize}">
+ <f:selectItem id="PageSize5" itemLabel="5"
itemValue="5"/>
+ <f:selectItem id="PageSize10" itemLabel="10"
itemValue="10"/>
+ <f:selectItem id="PageSize20" itemLabel="20"
itemValue="20"/>
</h:selectOneMenu>
</fieldset>
</h:form>
@@ -45,30 +45,30 @@
<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>
+ <h:column id="column1">
+ <f:facet id="NameFacet" name="header">Name</f:facet>
#{hot.name}
</h:column>
- <h:column>
- <f:facet name="header">Address</f:facet>
+ <h:column id="column2">
+ <f:facet id="AddressFacet"
name="header">Address</f:facet>
#{hot.address}
</h:column>
- <h:column>
- <f:facet name="header">City, State</f:facet>
+ <h:column id="column3">
+ <f:facet id="CityStateFacet" name="header">City,
State</f:facet>
#{hot.city}, #{hot.state}, #{hot.country}
</h:column>
- <h:column>
- <f:facet name="header">Zip</f:facet>
+ <h:column id="column4">
+ <f:facet id="ZipFacet" name="header">Zip</f:facet>
#{hot.zip}
</h:column>
- <h:column>
- <f:facet name="header">Action</f:facet>
+ <h:column id="column5">
+ <f:facet id="ActionFacet"
name="header">Action</f:facet>
<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>
@@ -77,34 +77,34 @@
</div>
<div class="section">
<h:form id="bookings">
- <h:outputText value="No Bookings Found"
rendered="#{bookings.rowCount==0}"/>
+ <h:outputText id="NoBookingsFoundMessage" value="No Bookings
Found" 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>
+ <h:column id="column1">
+ <f:facet id="NameFacet" name="header">Name</f:facet>
#{book.hotel.name}
</h:column>
- <h:column>
- <f:facet name="header">Address</f:facet>
+ <h:column id="column2">
+ <f:facet id="AddressFacet"
name="header">Address</f:facet>
#{book.hotel.address}
</h:column>
- <h:column>
- <f:facet name="header">City, State</f:facet>
+ <h:column id="column3">
+ <f:facet id="CityStateFacet" name="header">City,
State</f:facet>
#{book.hotel.city}, #{book.hotel.state}
</h:column>
- <h:column>
- <f:facet name="header">Check in date</f:facet>
- <h:outputText value="#{book.checkinDate}"/>
+ <h:column id="column4">
+ <f:facet id="CheckInDateFacet" name="header">Check
in date</f:facet>
+ <h:outputText id="BookingCheckInDate"
value="#{book.checkinDate}"/>
</h:column>
- <h:column>
- <f:facet name="header">Check out date</f:facet>
- <h:outputText value="#{book.checkoutDate}"/>
+ <h:column id="column5">
+ <f:facet id="CheckOutDateFacet" name="header">Check
out date</f:facet>
+ <h:outputText id="BookingCheckOutDate"
value="#{book.checkoutDate}"/>
</h:column>
- <h:column>
- <f:facet name="header">Confirmation number</f:facet>
+ <h:column id="column6">
+ <f:facet id="ConfNumberFacet" name="header">Confirmation
number</f:facet>
#{book.id}
</h:column>
- <h:column>
- <f:facet name="header">Action</f:facet>
+ <h:column id="column7">
+ <f:facet id="ActionFacet"
name="header">Action</f:facet>
<h:commandLink id="cancel" value="Cancel"
action="#{bookingList.cancel}"/>
</h:column>
</h:dataTable>
Modified: trunk/examples/booking/view/password.xhtml
===================================================================
--- trunk/examples/booking/view/password.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/password.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -16,19 +16,19 @@
<div class="section">
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<h:form id="setpassword">
<fieldset>
- <s:decorate template="edit.xhtml">
+ <s:decorate id="PasswordDecorate" template="edit.xhtml">
<ui:define name="label">Password:</ui:define>
<h:inputSecret id="password" value="#{user.password}"
required="true"/>
</s:decorate>
- <s:decorate template="edit.xhtml">
+ <s:decorate id="VerifyDecorate" template="edit.xhtml">
<ui:define name="label">Verify:</ui:define>
<h:inputSecret id="verify" value="#{changePassword.verify}"
required="true"/>
</s:decorate>
Modified: trunk/examples/booking/view/register.xhtml
===================================================================
--- trunk/examples/booking/view/register.xhtml 2008-06-09 18:42:12 UTC (rev 8365)
+++ trunk/examples/booking/view/register.xhtml 2008-06-09 19:49:54 UTC (rev 8366)
@@ -48,7 +48,7 @@
<div class="section">
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<h:form id="registration">
@@ -57,14 +57,14 @@
<s:decorate id="usernameDecorate" template="edit.xhtml">
<ui:define name="label">Username:</ui:define>
<h:inputText id="username" value="#{user.username}"
required="true">
- <a:support event="onblur" reRender="usernameDecorate"/>
+ <a:support id="onblur" event="onblur"
reRender="usernameDecorate"/>
</h:inputText>
</s:decorate>
<s:decorate id="nameDecorate" template="edit.xhtml">
<ui:define name="label">Real Name:</ui:define>
<h:inputText id="name" value="#{user.name}"
required="true">
- <a:support event="onblur" reRender="nameDecorate"/>
+ <a:support id="onblur" event="onblur"
reRender="nameDecorate"/>
</h:inputText>
</s:decorate>