Author: manaRH
Date: 2008-11-13 11:55:11 -0500 (Thu, 13 Nov 2008)
New Revision: 9559
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/editContact.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/search.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/viewContact.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/cart.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/login.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/stats.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/confirm.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/newuser/card.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/book.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/conversations.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/main.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/password.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/register.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/book.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/conversations.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/main.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/password.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/register.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/conversations.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/edit.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/main.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/password.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/register.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/book.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/conversations.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/password.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/edit.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/main.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/password.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/register.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/view/search.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/seampay/view/search.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/book.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/conversations.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/main.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/password.xhtml
branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/register.xhtml
Log:
added ids for functional testing framework
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/editContact.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/editContact.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/editContact.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -13,21 +13,21 @@
<body>
<div class="menuButtons">
- <s:link view="/search.xhtml" value="Search Contacts"/>
- <s:link view="/editContact.xhtml" value="Create New
Contact">
+ <s:link id="search" view="/search.xhtml" value="Search
Contacts"/>
+ <s:link id="create" view="/editContact.xhtml"
value="Create New Contact">
<f:param name="contactId"/> <!-- suppress propagation of
contact id page parameter -->
</s:link>
- <s:link view="/viewContact.xhtml" value="View Contact"
rendered="#{contactHome.managed}"/>
- <s:link view="/editContact.xhtml" value="Edit Contact"
rendered="#{contactHome.managed}"/>
+ <s:link id="view" view="/viewContact.xhtml" value="View
Contact" rendered="#{contactHome.managed}"/>
+ <s:link id="edit" view="/editContact.xhtml" value="Edit
Contact" rendered="#{contactHome.managed}"/>
</div>
<div class="body">
<h1>Edit Contact</h1>
- <h:form>
+ <h:form id="editForm">
- <h:messages globalOnly="true" styleClass="message"/>
+ <h:messages id="messages" globalOnly="true"
styleClass="message"/>
<!-- editable fields -->
<s:validateAll>
@@ -44,55 +44,55 @@
<tr class="prop">
<td class="name">First Name:</td>
<td class="value">
- <s:decorate><h:inputText id="firstName"
value="#{contact.firstName}" required="true"/></s:decorate>
+ <s:decorate id="firstNameDecorate"><h:inputText
id="firstName" value="#{contact.firstName}"
required="true"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">Last Name:</td>
<td class="value">
- <s:decorate><h:inputText id="lastName"
value="#{contact.lastName}" required="true"/></s:decorate>
+ <s:decorate id="lastNameDecorate"><h:inputText
id="lastName" value="#{contact.lastName}"
required="true"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">Cell Phone:</td>
<td class="value">
- <s:decorate><h:inputText id="cellPhone"
value="#{contact.cellPhone}"/></s:decorate>
+ <s:decorate id="cellPhoneDecorate"><h:inputText
id="cellPhone" value="#{contact.cellPhone}"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">Home Phone:</td>
<td class="value">
- <s:decorate><h:inputText id="homePhone"
value="#{contact.homePhone}"/></s:decorate>
+ <s:decorate id="homePhoneDecorate"><h:inputText
id="homePhone" value="#{contact.homePhone}"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">Address:</td>
<td class="value">
- <s:decorate><h:inputText id="address"
value="#{contact.address}"/></s:decorate>
+ <s:decorate id="addressDecorate"><h:inputText
id="address" value="#{contact.address}"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">City:</td>
<td class="value">
- <s:decorate><h:inputText id="city"
value="#{contact.city}"/></s:decorate>
+ <s:decorate id="cityDecorate"><h:inputText
id="city" value="#{contact.city}"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">State:</td>
<td class="value">
- <s:decorate><h:inputText id="state"
value="#{contact.state}"/></s:decorate>
+ <s:decorate id="stateDecorate"><h:inputText
id="state" value="#{contact.state}"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">Zip:</td>
<td class="value">
- <s:decorate><h:inputText id="zip"
value="#{contact.zip}"/></s:decorate>
+ <s:decorate id="zipDecorate"><h:inputText
id="zip" value="#{contact.zip}"/></s:decorate>
</td>
</tr>
<tr class="prop">
<td class="name">Country:</td>
<td class="value">
- <s:decorate><h:inputText id="country"
value="#{contact.country}"/></s:decorate>
+ <s:decorate id="countryDecorate"><h:inputText
id="country" value="#{contact.country}"/></s:decorate>
</td>
</tr>
</table>
@@ -103,12 +103,12 @@
<!-- actions -->
<div class="actionButtons">
- <h:commandLink action="#{contactHome.update}" value="Update
Contact" rendered="#{contactHome.managed}"/>
- <s:link action="#{contactHome.remove}" value="Delete
Contact" rendered="#{contactHome.managed}"/>
- <s:link view="/viewContact.xhtml" value="Cancel"
rendered="#{contactHome.managed}"/>
+ <h:commandLink id="updateContact"
action="#{contactHome.update}" value="Update Contact"
rendered="#{contactHome.managed}"/>
+ <s:link id="deleteContact"
action="#{contactHome.remove}" value="Delete Contact"
rendered="#{contactHome.managed}"/>
+ <s:link id="cancelManaged" view="/viewContact.xhtml"
value="Cancel" rendered="#{contactHome.managed}"/>
- <h:commandLink action="#{contactHome.persist}" value="Create
Contact" rendered="#{!contactHome.managed}"/>
- <s:link view="/search.xhtml" value="Cancel"
rendered="#{!contactHome.managed}"/>
+ <h:commandLink id="createContact"
action="#{contactHome.persist}" value="Create Contact"
rendered="#{!contactHome.managed}"/>
+ <s:link id="cancel" view="/search.xhtml"
value="Cancel" rendered="#{!contactHome.managed}"/>
</div>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/search.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/search.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/search.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -12,13 +12,13 @@
<body>
<div class="menuButtons">
- <s:link view="/search.xhtml" value="Search Contacts">
+ <s:link id="search" view="/search.xhtml" value="Search
Contacts">
<f:param name="firstName" />
<f:param name="lastName" />
<f:param name="firstResult" />
</s:link>
- <s:link view="/editContact.xhtml" value="Create New
Contact">
+ <s:link id="create" view="/editContact.xhtml"
value="Create New Contact">
<f:param name="contactId"/> <!-- suppress propagation of
contact id page parameter -->
</s:link>
</div>
@@ -27,22 +27,22 @@
<h1>ContactList</h1>
- <h:messages styleClass="message"/>
+ <h:messages id="messages" styleClass="message"/>
<!-- search box -->
<div class="dialog">
- <h:form>
+ <h:form id="searchForm">
<span class="prop">
<span class="name">First Name:</span>
- <span class="value"><h:inputText
value="#{exampleContact.firstName}"/></span>
+ <span class="value"><h:inputText id="firstName"
value="#{exampleContact.firstName}"/></span>
</span>
<span class="prop">
<span class="name">Last Name :</span>
- <span class="value"><h:inputText
value="#{exampleContact.lastName}"/></span>
+ <span class="value"><h:inputText id="lastName"
value="#{exampleContact.lastName}"/></span>
</span>
- <h:commandButton value="Search"
action="newsearch"/>
+ <h:commandButton id="submit" value="Search"
action="newsearch"/>
</h:form>
</div>
@@ -58,20 +58,20 @@
<th>Zip</th>
<th>Country</th>
</tr>
- <ui:repeat value="#{contacts.resultList}" var="cont">
+ <ui:repeat id="searchResult"
value="#{contacts.resultList}" var="cont">
<tr>
<td>
- <s:link view="/viewContact.xhtml"
value="#{cont.firstName} #{cont.lastName}">
+ <s:link id="link" view="/viewContact.xhtml"
value="#{cont.firstName} #{cont.lastName}">
<f:param name="contactId" value="#{cont.id}"/>
</s:link>
</td>
- <td>#{cont.cellPhone}</td>
- <td>#{cont.homePhone}</td>
- <td>#{cont.address}</td>
- <td>#{cont.city}</td>
- <td>#{cont.state}</td>
- <td>#{cont.zip}</td>
- <td>#{cont.country}</td>
+ <td><h:outputText id="cellPhone"
value="#{cont.cellPhone}" /></td>
+ <td><h:outputText id="homePhone"
value="#{cont.homePhone}" /></td>
+ <td><h:outputText id="address"
value="#{cont.address}" /></td>
+ <td><h:outputText id="city" value="#{cont.city}"
/></td>
+ <td><h:outputText id="state"
value="#{cont.state}" /></td>
+ <td><h:outputText id="zip" value="#{cont.zip}"
/></td>
+ <td><h:outputText id="country"
value="#{cont.country}" /></td>
</tr>
</ui:repeat>
</table>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/viewContact.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/viewContact.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/contactlist/view/viewContact.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -13,19 +13,19 @@
<body>
<div class="menuButtons">
- <s:link view="/search.xhtml" value="Search Contacts"/>
- <s:link view="/editContact.xhtml" value="Create New
Contact">
+ <s:link id="search" view="/search.xhtml" value="Search
Contacts"/>
+ <s:link id="create" view="/editContact.xhtml"
value="Create New Contact">
<f:param name="contactId"/> <!-- suppress propagation of
contact id page parameter -->
</s:link>
- <s:link view="/viewContact.xhtml" value="View Contact"/>
- <s:link view="/editContact.xhtml" value="Edit Contact"/>
+ <s:link id="view" view="/viewContact.xhtml" value="View
Contact"/>
+ <s:link id="edit" view="/editContact.xhtml" value="Edit
Contact"/>
</div>
<div class="body">
<h1>View Contact</h1>
- <h:messages styleClass="message"/>
+ <h:messages id="messages" styleClass="message"/>
<!-- fields -->
<div class="dialog">
@@ -71,8 +71,8 @@
<!-- actions -->
<div class="actionButtons">
- <s:link view="/editContact.xhtml" value="Edit
Contact"/>
- <s:link action="#{contactHome.remove}" value="Delete
Contact" rendered="#{contactHome.managed}"/>
+ <s:link id="editContact" view="/editContact.xhtml"
value="Edit Contact"/>
+ <s:link id="deleteContact" action="#{contactHome.remove}"
value="Delete Contact" rendered="#{contactHome.managed}"/>
</div>
<!-- associations -->
@@ -95,7 +95,7 @@
</h:column>
</h:dataTable>
- <h:form>
+ <h:form id="commentForm">
<!-- editable fields -->
<div class="dialog">
@@ -115,7 +115,7 @@
<!-- actions -->
<div class="actionButtons">
- <h:commandLink action="#{commentHome.persist}" value="Create
Comment"/>
+ <h:commandLink id="submit"
action="#{commentHome.persist}" value="Create Comment"/>
</div>
</h:form>
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -1,9 +1,9 @@
<div
xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib">
- <ul>
- <li id="page_admin"><s:link
view="/admin/admin.xhtml" value="Manage Orders"
propagation="none"/></li>
- <li id="page_process"><s:link
view="/admin/process.xhtml" value="Process Status"
propagation="none"/></li>
+ <ul id="AdminNavigation">
+ <li id="page_admin"><s:link id="ManageOrders"
view="/admin/admin.xhtml" value="Manage Orders"
propagation="none"/></li>
+ <li id="page_process"><s:link id="ProcessStatus"
view="/admin/process.xhtml" value="Process Status"
propagation="none"/></li>
</ul>
<script type="text/javascript" language="JavaScript">
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/cart.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/cart.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/cart.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -30,14 +30,14 @@
<dd>
<h:outputText value="#{messages.checkoutTotal}" />
- <h:outputText value="#{cart.total}">
+ <h:outputText id="CartTotal"
value="#{cart.total}">
<f:convertNumber type="currency"
currencySymbol="$" />
</h:outputText>
</dd>
- <h:form>
+ <h:form id="Cart">
<dd>
- <h:commandButton action="checkout"
value="#{messages.checkoutButton}"
+ <h:commandButton id="Checkout"
action="checkout" value="#{messages.checkoutButton}"
styleClass="formButton"
style="width: 166px;" />
</dd>
</h:form>
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/login.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/login.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/login.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -5,18 +5,18 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
- <h:form rendered="#{not identity.loggedIn}">
+ <h:form id="LoginForm" rendered="#{not identity.loggedIn}">
<dl>
<dt
class="menuHeader">#{messages.loginPagePrompt}</dt>
<dd class="menuForm">
<dl>
<dt><h:outputText value="#{messages.loginUser}"
/></dt>
- <dd><h:inputText value="#{identity.username}"
size="16" /></dd>
+ <dd><h:inputText id="Username"
value="#{identity.username}" size="16" /></dd>
<dt><h:outputText value="#{messages.loginPass}"
/></dt>
- <dd><h:inputSecret value="#{identity.password}"
size="16"/></dd>
+ <dd><h:inputSecret id="Password"
value="#{identity.password}" size="16"/></dd>
<dd>
- <h:commandButton action="#{identity.login}"
value="#{messages.loginPrompt}"
+ <h:commandButton id="Login"
action="#{identity.login}" value="#{messages.loginPrompt}"
styleClass="formButton"
style="width: 166px;"/>
</dd>
@@ -25,19 +25,19 @@
</dl>
<dl>
<dt class="menuFooter">
- <h:commandLink action="#{editCustomer.startEdit}">Create
Account</h:commandLink>
+ <h:commandLink id="CreateAccount"
action="#{editCustomer.startEdit}">Create Account</h:commandLink>
</dt>
</dl>
</h:form>
- <h:form rendered="#{identity.loggedIn}">
+ <h:form id="LogoutForm" rendered="#{identity.loggedIn}">
<dl>
<dt class="menuHeader">Welcome,
#{currentUser.firstName}</dt>
<dd class="menuForm">
<dl>
<dd>Thank you for choosing the DVD Store</dd>
<dd>
- <h:commandButton action="#{identity.logout}"
value="Logout"
+ <h:commandButton id="Logout"
action="#{identity.logout}" value="Logout"
styleClass="formButton"
style="width: 166px;"/>
</dd>
</dl>
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -13,12 +13,12 @@
<dl>
<dt>Process Management</dt>
<dd>
- <h:selectOneMenu
value="#{processDefinitionSwitcher.currentProcessDefinition}">
+ <h:selectOneMenu id="Menu"
value="#{processDefinitionSwitcher.currentProcessDefinition}">
<f:selectItems
value="#{processDefinitionSwitcher.processDefinitions}"/>
</h:selectOneMenu>
</dd>
<dd>
- <h:commandButton
action="#{processDefinitionSwitcher.switchProcess}"
+ <h:commandButton id="Switch"
action="#{processDefinitionSwitcher.switchProcess}"
value="Switch Order Process"
styleClass="formButton"
style="width: 166px;"/>
</dd>
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -6,7 +6,7 @@
xmlns:h="http://java.sun.com/jsf/html">
<dl>
<dt class="menuHeader">#{messages.browseSearchHeader}</dt>
- <dd class="menuForm"><h:form>
+ <dd class="menuForm"><h:form id="SearchForm">
<dl>
<ui:remove>
<dt><h:outputText
value="#{messages.searchCategory}"/></dt>
@@ -20,18 +20,18 @@
</dd>
</ui:remove>
- <dt><h:outputText value="#{messages.searchTerm}"
/></dt>
- <dd><h:inputText value="#{search.searchQuery}"
size="15" /></dd>
+ <dt><h:outputText id="QueryLabel"
value="#{messages.searchTerm}" /></dt>
+ <dd><h:inputText id="Query"
value="#{search.searchQuery}" size="15" /></dd>
- <dt><h:outputText value="#{messages.searchPageSize}"
/></dt>
- <dd><h:selectOneMenu value="#{search.pageSize}">
+ <dt><h:outputText id="PageSizeLabel"
value="#{messages.searchPageSize}" /></dt>
+ <dd><h:selectOneMenu id="PageSize"
value="#{search.pageSize}">
<f:selectItem itemLabel="10" itemValue="10" />
<f:selectItem itemLabel="15" itemValue="15" />
<f:selectItem itemLabel="20" itemValue="20" />
<f:selectItem itemLabel="30" itemValue="30" />
</h:selectOneMenu></dd>
- <dd><h:commandButton action="#{search.doSearch}"
+ <dd><h:commandButton id="Search"
action="#{search.doSearch}"
value="#{messages.searchButton}" styleClass="formButton"
style="width: 166px;" /></dd>
</dl>
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/stats.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/stats.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/stats.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -11,10 +11,15 @@
<dd class="menuSection">
<dl>
<dt>Inventory</dt>
- <dd>#{stats.unitsSold} sold, #{stats.totalInventory} in
stock</dd>
+ <dd>
+ <h:outputText id="TotalSold"
value="#{stats.unitsSold}" />
+ sold,
+ <h:outputText id="TotalInventory"
value="#{stats.totalInventory}" />
+ in stock
+ </dd>
<dt>Sales</dt>
<dd>
- <h:outputText value="#{stats.totalSales}">
+ <h:outputText id="TotalSales"
value="#{stats.totalSales}">
<f:convertNumber type="currency"
currencySymbol="$" />
</h:outputText>
from #{stats.numberOrders} orders
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -3,16 +3,16 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
-
- <ul>
- <li id="page_home"><s:link view="/home.xhtml"
value="Home" propagation="none"/></li>
- <li id="page_shop"><s:link view="/browse.xhtml"
value="Shop" propagation="none"/></li>
- <f:subview id="my_orders_link"
rendered="#{identity.loggedIn}">
- <li id="page_orders"><s:link
view="/showorders.xhtml" value="My Orders"
propagation="none"/></li>
- </f:subview>
- <li id="page_cart"><s:link view="/checkout.xhtml"
value="Cart" propagation="none"/></li>
- </ul>
-
+
+ <ul id="Navigation">
+ <li id="page_home"><s:link id="Home"
view="/home.xhtml" value="Home"
propagation="none"/></li>
+ <li id="page_shop"><s:link id="Shop"
view="/browse.xhtml" value="Shop"
propagation="none"/></li>
+ <f:subview rendered="#{identity.loggedIn}">
+ <li id="page_orders"><s:link id="MyOrders"
view="/showorders.xhtml" value="My Orders"
propagation="none"/></li>
+ </f:subview>
+ <li id="page_cart"><s:link id="Cart"
view="/checkout.xhtml" value="Cart"
propagation="none"/></li>
+ </ul>
+
<script type="text/javascript" language="JavaScript">
function setClass(id, className) {
var obj = document.getElementById(id);
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/confirm.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/confirm.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/confirm.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -80,9 +80,9 @@
</h:panelGrid>
<h:form>
- <h:commandButton action="purchase"
value="Confirm" />
+ <h:commandButton id="Confirm"
action="purchase" value="Confirm" />
 
- <h:commandButton action="cancel"
value="Cancel" />
+ <h:commandButton id="Cancel"
action="cancel" value="Cancel" />
</h:form>
</div>
</div>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/newuser/card.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/newuser/card.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/dvdstore/view/newuser/card.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -22,7 +22,7 @@
<p><em><h:outputText
value="#{messages.newCustomerInfo}" /></em></p>
- <h:form>
+ <h:form id="NewAccountForm">
<table border="0">
<tr>
<td>#{messages.newCustomerCCT}</td>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/book.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/book.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/book.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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:
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/conversations.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/conversations.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/conversations.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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}"/>
 
- <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: branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/main.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/main.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/main.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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 @@
 
<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: branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/password.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/password.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/password.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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: branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/register.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/register.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/groovybooking/view/register.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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">
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/book.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/book.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/book.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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: branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/conversations.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/conversations.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/conversations.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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}"/>
 
- <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: branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/main.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/main.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/main.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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 @@
 
<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>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/password.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/password.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/password.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -15,11 +15,11 @@
<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:message/>
+ <s:message id="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,7 +39,7 @@
<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>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/register.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/register.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/hibernate/view/register.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -34,7 +34,7 @@
</f:facet>
<f:facet name="afterInvalidField">
<s:div styleClass="errors">
- <s:message/>
+ <s:message id="message"/>
</s:div>
</f:facet>
@@ -63,7 +63,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>
@@ -72,7 +72,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>
@@ -81,7 +81,7 @@
</s:validateAll>
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<div class="entry">
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/conversations.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/conversations.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/conversations.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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: branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/edit.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/edit.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/edit.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -14,7 +14,7 @@
<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: branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/main.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/main.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/main.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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>
@@ -26,7 +26,7 @@
 
<ice:commandButton id="findHotels" value="Find
Hotels" action="#{hotelSearch.find}" />
 
- <ice:outputConnectionStatus activeLabel="requesting..."
styleClass="connectionStatus"/>
+ <ice:outputConnectionStatus id="Spinner"
activeLabel="requesting..." styleClass="connectionStatus"/>
<br/>
<h:outputLabel for="pageSize">Maximum
results:</h:outputLabel> 
@@ -42,34 +42,34 @@
</h:form>
</div>
-<ice:form>
+<ice:form id="searchResults">
<ice:panelGroup id="searchResults">
<div class="section" style="overflow:auto">
- <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}"/>
<ice:outputText value="Search Results"/>
<ice:dataTable id="hotels" value="#{hotels}"
var="hot" rendered="#{hotels.rowCount>0}">
<h:column>
<f:facet name="header">Name</f:facet>
- <ice:outputText value="#{hot.name}"
onmouseovereffect="#{highlight}"/>
+ <ice:outputText id="name" value="#{hot.name}"
onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">Address</f:facet>
- <ice:outputText value="#{hot.address}"
onmouseovereffect="#{highlight}"/>
+ <ice:outputText id="address"
value="#{hot.address}" onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">City, State</f:facet>
- <ice:outputText value="#{hot.city}, #{hot.state},
#{hot.country}" onmouseovereffect="#{highlight}"/>
+ <ice:outputText id="city" value="#{hot.city},
#{hot.state}, #{hot.country}" onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">Zip</f:facet>
- <ice:outputText value="#{hot.zip}"
onmouseovereffect="#{highlight}"/>
+ <ice:outputText id="zip" value="#{hot.zip}"
onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">Action</f:facet>
<ice:commandLink id="viewHotel" value="View
Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
</h:column>
</ice:dataTable>
- <s:link value="More results"
action="#{hotelSearch.nextPage}"
rendered="#{hotelSearch.nextPageAvailable}"/>
+ <s:link value="More results" id="moreResults"
action="#{hotelSearch.nextPage}"
rendered="#{hotelSearch.nextPageAvailable}"/>
</div>
</ice:panelGroup>
</ice:form>
@@ -82,27 +82,27 @@
<ice:dataTable id="bookings" value="#{bookings}"
var="book" rendered="#{bookings.rowCount>0}">
<h:column>
<f:facet name="header">Name</f:facet>
- <ice:outputText value="#{book.hotel.name}"
onmouseovereffect="#{highlight}"/>
+ <ice:outputText id="name" value="#{book.hotel.name}"
onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">Address</f:facet>
- <ice:outputText value="#{book.hotel.address}"
onmouseovereffect="#{highlight}"/>
+ <ice:outputText id="address" value="#{book.hotel.address}"
onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">City, State</f:facet>
- <ice:outputText value="#{book.hotel.city}, #{book.hotel.state}"
onmouseovereffect="#{highlight}"/>
+ <ice:outputText id="city" value="#{book.hotel.city},
#{book.hotel.state}" onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">Check in date</f:facet>
- <h:outputText value="#{book.checkinDate}"
onmouseovereffect="#{highlight}"/>
+ <h:outputText id="checkIn" value="#{book.checkinDate}"
onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">Check out date</f:facet>
- <h:outputText value="#{book.checkoutDate}"
onmouseovereffect="#{highlight}"/>
+ <h:outputText id="checkOut"
value="#{book.checkoutDate}" onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">Confirmation number</f:facet>
- <ice:outputText value="#{book.id}"
onmouseovereffect="#{highlight}"/>
+ <ice:outputText id="confirmation" value="#{book.id}"
onmouseovereffect="#{highlight}"/>
</h:column>
<h:column>
<f:facet name="header">Action</f:facet>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/password.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/password.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/password.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -23,7 +23,7 @@
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<h:form id="setpassword">
@@ -34,7 +34,7 @@
- <s:decorate template="edit.xhtml">
+ <s:decorate id="PasswordDecorate" template="edit.xhtml">
<ui:define name="label">Password:</ui:define>
@@ -44,7 +44,7 @@
- <s:decorate template="edit.xhtml">
+ <s:decorate id="VerifyDecorate" template="edit.xhtml">
<ui:define name="label">Verify:</ui:define>
<ice:inputSecret id="verify"
value="#{changePassword.verify}"
redisplay="true" required="true"/>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/register.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/register.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/icefaces/view/register.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -48,7 +48,7 @@
<div class="section" style="overflow:auto">
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<h:form id="registration">
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/book.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/book.xhtml 2008-11-13 12:26:08
UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/book.xhtml 2008-11-13 16:55:11
UTC (rev 9559)
@@ -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>
@@ -77,7 +77,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"/>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/conversations.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/conversations.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/conversations.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -12,12 +12,12 @@
</div>
<div class="section">
- <h:form>
- <h:dataTable value="#{conversationList}" var="entry">
+ <h:form id="ConversationListForm">
+ <h:dataTable id="ConversationListDataTable"
value="#{conversationList}" var="entry">
<h:column>
<h:commandLink 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}">
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/password.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/password.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/jpa/view/password.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -19,7 +19,7 @@
</f:facet>
<f:facet name="afterInvalidField">
<s:div styleClass="errors">
- <s:message/>
+ <s:message id="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,7 +39,7 @@
<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>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/edit.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/edit.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/edit.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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: branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/main.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/main.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/main.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -26,7 +26,7 @@
 
<a:status>
<f:facet name="start">
- <h:graphicImage value="/img/spinner.gif"/>
+ <h:graphicImage id="SpinnerGif"
value="/img/spinner.gif"/>
</f:facet>
</a:status>
<br/>
@@ -43,26 +43,26 @@
<a:outputPanel id="searchResults">
<div class="section">
- <h:outputText value="No Hotels Found" rendered="#{hotels != null and
hotels.rowCount==0}"/>
+ <h:outputText id="NoBookingsFoundMessage" 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>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/password.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/password.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/password.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -14,18 +14,18 @@
<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>
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<div class="entry">
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/register.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/register.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/nestedbooking/view/register.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -40,18 +40,18 @@
</h:inputText>
</s:decorate>
- <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 Password:</ui:define>
<h:inputSecret id="verify" value="#{register.verify}"
required="true"/>
</s:decorate>
<div class="entry errors">
- <h:messages globalOnly="true"/>
+ <h:messages id="messages" globalOnly="true"/>
</div>
<div class="entry">
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/view/search.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/view/search.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/quartz/view/search.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -30,16 +30,16 @@
<th>Account Number</th>
<th>Balance</th>
</tr>
- <ui:repeat value="#{accounts.resultList}"
var="account">
+ <ui:repeat id="accountTable"
value="#{accounts.resultList}" var="account">
<tr>
<td>
- <s:link view="/search.xhtml"
value="#{account.id}">
+ <s:link id="link" view="/search.xhtml"
value="#{account.id}">
<f:param name="accountId"
value="#{account.id}"/>
</s:link>
</td>
<td>#{account.accountNumber}</td>
<td>
- <h:outputText value="#{account.balance}">
+ <h:outputText id="balance"
value="#{account.balance}">
<f:convertNumber type="currency"
currencySymbol="$"/>
</h:outputText>
</td>
@@ -51,54 +51,58 @@
<f:subview id="accountView"
rendered="#{accountHome.idDefined}">
<h2>Payments from Account
#{accountHome.instance.accountNumber}</h2>
- <table class="results">
- <tr>
- <th>Status</th>
- <th>Payee</th>
- <th>Payment Amount</th>
- <th>Created Date</th>
- <th>Scheduled Date</th>
- <th>Cron</th>
- <th>Frequency</th>
- <th>Last Paid On</th>
- </tr>
- <ui:repeat value="#{accountHome.instance.payments}"
var="payment">
- <tr>
- <td>
- <s:button action="#{paymentHome.cancel}"
value="Cancel" rendered="#{payment.active}">
- <f:param name="paymentId"
value="#{payment.id}"/>
- </s:button>
- <h:outputText value="not active"
rendered="#{!payment.active}" />
- </td>
- <td>#{payment.payee}</td>
- <td>
- <h:outputText value="#{payment.amount}">
- <f:convertNumber type="currency"
currencySymbol="$"/>
- </h:outputText>
- </td>
- <td>
- <h:outputText
value="#{payment.createdDate}">
- <f:convertDateTime type="date"
dateStyle="medium" />
- </h:outputText>
- </td>
- <td>
- <h:outputText
value="#{payment.paymentDate}">
- <f:convertDateTime type="date"
dateStyle="medium" />
- </h:outputText>
- </td>
- <td>#{payment.paymentCron}</td>
- <td>#{payment.paymentFrequency}</td>
- <td>
- <h:outputText value="#{payment.lastPaid}">
- <f:convertDateTime type="date"
dateStyle="medium" />
- </h:outputText>
- </td>
- </tr>
- </ui:repeat>
+ <table id="payments" class="results">
+ <thead>
+ <tr>
+ <th>Status</th>
+ <th>Payee</th>
+ <th>Payment Amount</th>
+ <th>Created Date</th>
+ <th>Scheduled Date</th>
+ <th>Cron</th>
+ <th>Frequency</th>
+ <th>Last Paid On</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ui:repeat value="#{accountHome.instance.payments}"
var="payment">
+ <tr>
+ <td>
+ <s:button action="#{paymentHome.cancel}"
value="Cancel" rendered="#{payment.active}">
+ <f:param name="paymentId"
value="#{payment.id}"/>
+ </s:button>
+ <h:outputText value="not active"
rendered="#{!payment.active}" />
+ </td>
+ <td>#{payment.payee}</td>
+ <td>
+ <h:outputText value="#{payment.amount}">
+ <f:convertNumber type="currency"
currencySymbol="$"/>
+ </h:outputText>
+ </td>
+ <td>
+ <h:outputText
value="#{payment.createdDate}">
+ <f:convertDateTime type="date"
dateStyle="medium" />
+ </h:outputText>
+ </td>
+ <td>
+ <h:outputText
value="#{payment.paymentDate}">
+ <f:convertDateTime type="date"
dateStyle="medium" />
+ </h:outputText>
+ </td>
+ <td>#{payment.paymentCron}</td>
+ <td>#{payment.paymentFrequency}</td>
+ <td>
+ <h:outputText value="#{payment.lastPaid}">
+ <f:convertDateTime type="date"
dateStyle="medium" />
+ </h:outputText>
+ </td>
+ </tr>
+ </ui:repeat>
+ </tbody>
</table>
<h2>Make a payment from account
#{accountHome.instance.accountNumber}:</h2>
- <h:form>
+ <h:form id="paymentForm">
<s:validateAll>
<table>
<tr>
@@ -142,7 +146,7 @@
<p><b>Now, choose one of the following repeat payment
schemes</b></p>
<p>Cron:
<h:inputText id="paymentCron"
value="#{newPayment.paymentCron}"/><br/>
- <h:commandButton value="Schedule Cron Job"
+ <h:commandButton id="cronSubmit" value="Schedule Cron
Job"
action="#{paymentHome.saveAndScheduleCron}"
/>
</p>
@@ -160,7 +164,7 @@
<f:selectItems value="#{newPayment.frequencies}" />
</ui:remove>
</h:selectOneRadio><br/>
- <h:commandButton value="Schedule at Fixed Interval"
+ <h:commandButton id="submit" value="Schedule at Fixed
Interval"
action="#{paymentHome.saveAndSchedule}" />
</p>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/seampay/view/search.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/seampay/view/search.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/seampay/view/search.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -31,16 +31,16 @@
<th>Account Number</th>
<th>Balance</th>
</tr>
- <ui:repeat value="#{accounts.resultList}"
var="account">
+ <ui:repeat id="accountTable"
value="#{accounts.resultList}" var="account">
<tr>
<td>
- <s:link view="/search.xhtml"
value="#{account.id}">
+ <s:link id="link" view="/search.xhtml"
value="#{account.id}">
<f:param name="accountId"
value="#{account.id}"/>
</s:link>
</td>
<td>#{account.accountNumber}</td>
<td>
- <h:outputText value="#{account.balance}">
+ <h:outputText id="balance"
value="#{account.balance}">
<f:convertNumber type="currency"
currencySymbol="$"/>
</h:outputText>
</td>
@@ -52,52 +52,56 @@
<f:subview id="accountView"
rendered="#{accountHome.idDefined}">
<h2>Payments from Account
#{accountHome.instance.accountNumber}</h2>
- <table class="results">
- <tr>
- <th>Status</th>
- <th>Payee</th>
- <th>Payment Amount</th>
- <th>Created Date</th>
- <th>Scheduled Date</th>
- <th>Frequency</th>
- <th>Last Paid On</th>
- </tr>
- <ui:repeat value="#{accountHome.instance.payments}"
var="payment">
- <tr>
- <td>
- <s:button action="#{paymentHome.cancel}"
value="Cancel" rendered="#{payment.active}">
- <f:param name="paymentId"
value="#{payment.id}"/>
- </s:button>
- <h:outputText value="not active"
rendered="#{!payment.active}" />
- </td>
- <td>#{payment.payee}</td>
- <td>
- <h:outputText value="#{payment.amount}">
- <f:convertNumber type="currency"
currencySymbol="$"/>
- </h:outputText>
- </td>
- <td>
- <h:outputText
value="#{payment.createdDate}">
- <f:convertDateTime type="date"
dateStyle="medium" />
- </h:outputText>
- </td>
- <td>
- <h:outputText
value="#{payment.paymentDate}">
- <f:convertDateTime type="date"
dateStyle="medium" />
- </h:outputText>
- </td>
- <td>#{payment.paymentFrequency}</td>
- <td>
- <h:outputText value="#{payment.lastPaid}">
- <f:convertDateTime type="date"
dateStyle="medium" />
- </h:outputText>
- </td>
- </tr>
- </ui:repeat>
+ <table id="payments" class="results">
+ <thead>
+ <tr>
+ <th>Status</th>
+ <th>Payee</th>
+ <th>Payment Amount</th>
+ <th>Created Date</th>
+ <th>Scheduled Date</th>
+ <th>Frequency</th>
+ <th>Last Paid On</th>
+ </tr>
+ </thead>
+ <tbody>
+ <ui:repeat value="#{accountHome.instance.payments}"
var="payment">
+ <tr>
+ <td>
+ <s:button action="#{paymentHome.cancel}"
value="Cancel" rendered="#{payment.active}">
+ <f:param name="paymentId"
value="#{payment.id}"/>
+ </s:button>
+ <h:outputText value="not active"
rendered="#{!payment.active}" />
+ </td>
+ <td>#{payment.payee}</td>
+ <td>
+ <h:outputText
value="#{payment.amount}">
+ <f:convertNumber type="currency"
currencySymbol="$"/>
+ </h:outputText>
+ </td>
+ <td>
+ <h:outputText
value="#{payment.createdDate}">
+ <f:convertDateTime type="date"
dateStyle="medium" />
+ </h:outputText>
+ </td>
+ <td>
+ <h:outputText
value="#{payment.paymentDate}">
+ <f:convertDateTime type="date"
dateStyle="medium" />
+ </h:outputText>
+ </td>
+ <td>#{payment.paymentFrequency}</td>
+ <td>
+ <h:outputText
value="#{payment.lastPaid}">
+ <f:convertDateTime type="date"
dateStyle="medium" />
+ </h:outputText>
+ </td>
+ </tr>
+ </ui:repeat>
+ </tbody>
</table>
<h2>Make a payment from account
#{accountHome.instance.accountNumber}:</h2>
- <h:form>
+ <h:form id="paymentForm">
<s:validateAll>
<table>
<tr>
@@ -129,11 +133,11 @@
layout="lineDirection"
value="#{newPayment.paymentFrequency}">
<s:convertEnum />
- <s:enumItem enumValue="ONCE"
label="Only Once" />
- <s:enumItem enumValue="EVERY_MINUTE"
label="Every Minute (testing)" />
- <s:enumItem enumValue="HOURLY"
label="Every Hour (testing)" />
- <s:enumItem enumValue="DAILY"
label="Every Day" />
- <s:enumItem enumValue="WEEKLY"
label="Every Week" />
+ <s:enumItem id="once"
enumValue="ONCE" label="Only Once" />
+ <s:enumItem id="everyMinute"
enumValue="EVERY_MINUTE" label="Every Minute (testing)" />
+ <s:enumItem id="hourly"
enumValue="HOURLY" label="Every Hour (testing)" />
+ <s:enumItem id="daily"
enumValue="DAILY" label="Every Day" />
+ <s:enumItem id="weekly"
enumValue="WEEKLY" label="Every Week" />
<ui:remove>
<f:selectItems
value="#{newPayment.frequencies}" />
</ui:remove>
@@ -143,7 +147,7 @@
</table>
</s:validateAll>
- <h:commandButton value="Schedule"
+ <h:commandButton id="submit" value="Schedule"
action="#{paymentHome.saveAndSchedule}" />
</h:form>
</f:subview>
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/book.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/book.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/book.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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: branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/conversations.xhtml
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/conversations.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++
branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/conversations.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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: branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/main.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/main.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/main.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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: branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/password.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/password.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/password.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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: branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/register.xhtml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/register.xhtml 2008-11-13
12:26:08 UTC (rev 9558)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/spring/view/register.xhtml 2008-11-13
16:55:11 UTC (rev 9559)
@@ -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">