Author: jharting
Date: 2008-09-19 07:58:50 -0400 (Fri, 19 Sep 2008)
New Revision: 9029
Modified:
trunk/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml
trunk/examples/dvdstore/view/WEB-INF/incl/cart.xhtml
trunk/examples/dvdstore/view/WEB-INF/incl/login.xhtml
trunk/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml
trunk/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml
trunk/examples/dvdstore/view/WEB-INF/incl/stats.xhtml
trunk/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml
trunk/examples/dvdstore/view/confirm.xhtml
trunk/examples/dvdstore/view/newuser/card.xhtml
Log:
JBSEAM-3431 Added ids for dvdstore example.
Modified: trunk/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml
===================================================================
--- trunk/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml 2008-09-19 11:21:18 UTC (rev
9028)
+++ trunk/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml 2008-09-19 11:58:50 UTC (rev
9029)
@@ -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: trunk/examples/dvdstore/view/WEB-INF/incl/cart.xhtml
===================================================================
--- trunk/examples/dvdstore/view/WEB-INF/incl/cart.xhtml 2008-09-19 11:21:18 UTC (rev
9028)
+++ trunk/examples/dvdstore/view/WEB-INF/incl/cart.xhtml 2008-09-19 11:58:50 UTC (rev
9029)
@@ -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: trunk/examples/dvdstore/view/WEB-INF/incl/login.xhtml
===================================================================
--- trunk/examples/dvdstore/view/WEB-INF/incl/login.xhtml 2008-09-19 11:21:18 UTC (rev
9028)
+++ trunk/examples/dvdstore/view/WEB-INF/incl/login.xhtml 2008-09-19 11:58:50 UTC (rev
9029)
@@ -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: trunk/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml
===================================================================
--- trunk/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml 2008-09-19 11:21:18 UTC
(rev 9028)
+++ trunk/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml 2008-09-19 11:58:50 UTC
(rev 9029)
@@ -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: trunk/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml
===================================================================
--- trunk/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml 2008-09-19 11:21:18 UTC (rev
9028)
+++ trunk/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml 2008-09-19 11:58:50 UTC (rev
9029)
@@ -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: trunk/examples/dvdstore/view/WEB-INF/incl/stats.xhtml
===================================================================
--- trunk/examples/dvdstore/view/WEB-INF/incl/stats.xhtml 2008-09-19 11:21:18 UTC (rev
9028)
+++ trunk/examples/dvdstore/view/WEB-INF/incl/stats.xhtml 2008-09-19 11:58:50 UTC (rev
9029)
@@ -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: trunk/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml
===================================================================
--- trunk/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml 2008-09-19 11:21:18 UTC (rev
9028)
+++ trunk/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml 2008-09-19 11:58:50 UTC (rev
9029)
@@ -4,13 +4,13 @@
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>
+ <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 view="/checkout.xhtml"
value="Cart" propagation="none"/></li>
+ <li id="page_cart"><s:link id="Cart"
view="/checkout.xhtml" value="Cart"
propagation="none"/></li>
</ul>
<script type="text/javascript" language="JavaScript">
Modified: trunk/examples/dvdstore/view/confirm.xhtml
===================================================================
--- trunk/examples/dvdstore/view/confirm.xhtml 2008-09-19 11:21:18 UTC (rev 9028)
+++ trunk/examples/dvdstore/view/confirm.xhtml 2008-09-19 11:58:50 UTC (rev 9029)
@@ -81,9 +81,9 @@
</h:panelGrid>
<h:form id="ConfirmOrCancelForm">
- <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: trunk/examples/dvdstore/view/newuser/card.xhtml
===================================================================
--- trunk/examples/dvdstore/view/newuser/card.xhtml 2008-09-19 11:21:18 UTC (rev 9028)
+++ trunk/examples/dvdstore/view/newuser/card.xhtml 2008-09-19 11:58:50 UTC (rev 9029)
@@ -22,7 +22,7 @@
<p><em><h:outputText id="NewCustomerInfoText"
value="#{messages.newCustomerInfo}" /></em></p>
- <h:form>
+ <h:form id="NewAccountForm">
<table border="0">
<tr>
<td>#{messages.newCustomerCCT}</td>