[seam-commits] Seam SVN: r8684 - in trunk/examples/dvdstore/view: admin and 1 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Aug 13 14:27:29 EDT 2008
Author: stan.silvert at jboss.com
Date: 2008-08-13 14:27:29 -0400 (Wed, 13 Aug 2008)
New Revision: 8684
Modified:
trunk/examples/dvdstore/view/admin/accept.xhtml
trunk/examples/dvdstore/view/admin/admin.xhtml
trunk/examples/dvdstore/view/admin/process.xhtml
trunk/examples/dvdstore/view/admin/ship.xhtml
trunk/examples/dvdstore/view/browse.xhtml
trunk/examples/dvdstore/view/checkout.xhtml
trunk/examples/dvdstore/view/complete.xhtml
trunk/examples/dvdstore/view/confirm.xhtml
trunk/examples/dvdstore/view/dvd.xhtml
trunk/examples/dvdstore/view/home.xhtml
trunk/examples/dvdstore/view/newuser/account.xhtml
trunk/examples/dvdstore/view/newuser/card.xhtml
trunk/examples/dvdstore/view/newuser/complete.xhtml
trunk/examples/dvdstore/view/newuser/contact.xhtml
trunk/examples/dvdstore/view/showorders.xhtml
Log:
JBSEAM-3099 - Port JBSEAM-3048 to trunk "Add id attribute to markup for JSF components in Seam examples"
Modified: trunk/examples/dvdstore/view/admin/accept.xhtml
===================================================================
--- trunk/examples/dvdstore/view/admin/accept.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/admin/accept.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -23,70 +23,71 @@
<p>Please accept or reject the order.</p>
<div class="cntInfo">
- <h:panelGrid columns="2">
- <h:outputText value="Order" />
- <h:outputText value="#{order.orderId}" />
+ <h:panelGrid id="AcceptancePanel" columns="2">
+ <h:outputText id="OrderText" value="Order" />
+ <h:outputText id="OrderIdValue" value="#{order.orderId}" />
- <h:outputText value="Order date:" />
- <h:outputText value="#{order.orderDate}">
+ <h:outputText id="OrderDateText" value="Order date:" />
+ <h:outputText id="OrderDateValue" value="#{order.orderDate}">
<s:convertDateTime type="both" dateStyle="full"/>
</h:outputText>
- <h:outputText value="Net Amount:" />
- <h:outputText value="#{order.netAmount}">
+ <h:outputText id="NetAmountText" value="Net Amount:" />
+ <h:outputText id="NetAmountValue" value="#{order.netAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="Tax:" />
- <h:outputText value="#{order.tax}">
+ <h:outputText id="TaxText" value="Tax:" />
+ <h:outputText id="TaxValue" value="#{order.tax}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="Total Amount:" />
- <h:outputText value="#{order.totalAmount}">
+ <h:outputText id="TotalAmountText" value="Total Amount:" />
+ <h:outputText id="TotalAmountValue" value="#{order.totalAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:panelGrid>
<div class="cntInfo">
- <h:dataTable value="#{order.orderLines}"
+ <h:dataTable id="OrderLinesDataTable"
+ value="#{order.orderLines}"
var="item"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartQuantityColumn}" />
+ <h:column id="column1">
+ <f:facet id="QuantityFacet" name="header">
+ <h:outputText id="QuantityText" value="#{messages.cartQuantityColumn}" />
</f:facet>
- <h:outputText value="#{item.quantity}" />
+ <h:outputText id="QuantityValue" value="#{item.quantity}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartTitleColumn}" />
+ <h:column id="column2">
+ <f:facet id="TitleFacet" name="header">
+ <h:outputText id="TitleText" value="#{messages.cartTitleColumn}" />
</f:facet>
- <h:outputText value="#{item.product.title}" />
+ <h:outputText id="TitleValue" value="#{item.product.title}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartActorColumn}" />
+ <h:column id="column3">
+ <f:facet id="ActorFacet" name="header">
+ <h:outputText id="ActorText" value="#{messages.cartActorColumn}" />
</f:facet>
- <h:outputText value="#{item.product.actors[0].name}" />
+ <h:outputText id="ActorValue" value="#{item.product.actors[0].name}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartPriceColumn}" />
+ <h:column id="column4">
+ <f:facet id="PriceFacet" name="header">
+ <h:outputText id="PriceText" value="#{messages.cartPriceColumn}" />
</f:facet>
- <h:outputText value="#{item.product.price}">
+ <h:outputText id="PriceValue" value="#{item.product.price}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
</h:dataTable>
</div>
- <h:form>
- <h:commandButton action="#{accept.reject}" value="Reject Order" />
- <h:commandButton action="#{accept.accept}" value="Accept Order" />
+ <h:form id="AcceptRejectForm">
+ <h:commandButton id="AcceptOrderButton" action="#{accept.reject}" value="Reject Order" />
+ <h:commandButton id="RejectOrderButton" action="#{accept.accept}" value="Accept Order" />
</h:form>
</div>
Modified: trunk/examples/dvdstore/view/admin/admin.xhtml
===================================================================
--- trunk/examples/dvdstore/view/admin/admin.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/admin/admin.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -60,33 +60,34 @@
<p>There are no pooled tasks to be assigned.</p>
</f:subview>
- <h:dataTable rendered="#{not empty pooledTaskInstanceList}"
+ <h:dataTable id="TaskAssignmentDataTable"
+ rendered="#{not empty pooledTaskInstanceList}"
value="#{pooledTaskInstanceList}"
var="task"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">Order Id</f:facet>
+ <h:column id="column1">
+ <f:facet id="OrderIdFacet" name="header">Order Id</f:facet>
#{task.variables['orderId']}
</h:column>
- <h:column>
- <f:facet name="header">Task</f:facet>
- <h:outputText value="#{task.description}" />
+ <h:column id="column2">
+ <f:facet id="TaskFacet" name="header">Task</f:facet>
+ <h:outputText id="TaskDescription" value="#{task.description}" />
</h:column>
- <h:column>
- <f:facet name="header">Order Amount</f:facet>
- <h:outputText value="#{task.variables['amount']}">
+ <h:column id="column3">
+ <f:facet id="OrderAmountFacet" name="header">Order Amount</f:facet>
+ <h:outputText id="OrderAmountValue" value="#{task.variables['amount']}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
- <h:column>
- <f:facet name="header">Customer</f:facet>
- <h:outputText value="#{task.variables['customer']}" />
+ <h:column id="column4">
+ <f:facet id="CustomerFacet" name="header">Customer</f:facet>
+ <h:outputText id="CustomerValue" value="#{task.variables['customer']}" />
</h:column>
- <h:column>
- <s:button action="#{pooledTask.assignToCurrentActor}" taskInstance="#{task}"
+ <h:column id="column5">
+ <s:button id="AssignButton" action="#{pooledTask.assignToCurrentActor}" taskInstance="#{task}"
value="Assign"/>
</h:column>
</h:dataTable>
@@ -97,29 +98,30 @@
<p>There are no orders to be accepted.</p>
</f:subview>
- <h:dataTable rendered="#{not empty taskInstanceListForType['approve']}"
+ <h:dataTable id="OrderAcceptanceDataTable"
+ rendered="#{not empty taskInstanceListForType['approve']}"
value="#{taskInstanceListForType['approve']}"
var="task"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">Order Id</f:facet>
+ <h:column id="column1">
+ <f:facet id="AcceptanceIdFacet" name="header">Order Id</f:facet>
#{task.variables['orderId']}
</h:column>
- <h:column>
- <f:facet name="header">Order Amount</f:facet>
- <h:outputText value="#{task.variables['amount']}">
+ <h:column id="column2">
+ <f:facet id="AcceptanceAmountFacet" name="header">Order Amount</f:facet>
+ <h:outputText id="AcceptanceAmountValue" value="#{task.variables['amount']}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
- <h:column>
- <f:facet name="header">Customer</f:facet>
- <h:outputText value="#{task.variables['customer']}" />
+ <h:column id="column3">
+ <f:facet id="AcceptanceCustomerFacet" name="header">Customer</f:facet>
+ <h:outputText id="AcceptanceCustomerValue" value="#{task.variables['customer']}" />
</h:column>
- <h:column>
- <s:button action="#{accept.viewTask}" taskInstance="#{task}"
+ <h:column id="column4">
+ <s:button id="AcceptanceTaskButton" action="#{accept.viewTask}" taskInstance="#{task}"
value="Review"/>
</h:column>
</h:dataTable>
@@ -128,29 +130,30 @@
<f:subview id="no_shipping" rendered="#{empty taskInstanceListForType['ship']}">
<p>There are no orders to be shipped.</p>
</f:subview>
- <h:dataTable rendered="#{not empty taskInstanceListForType['ship']}"
+ <h:dataTable id="ShippingDataTable"
+ rendered="#{not empty taskInstanceListForType['ship']}"
value="#{taskInstanceListForType['ship']}"
var="task"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">Order Id</f:facet>
+ <h:column id="column1">
+ <f:facet id="ShippingIdFacet" name="header">Order Id</f:facet>
#{task.variables['orderId']}
</h:column>
- <h:column>
- <f:facet name="header">Order Amount</f:facet>
- <h:outputText value="#{task.variables['amount']}">
+ <h:column id="column2">
+ <f:facet id="ShippingAmountFacet" name="header">Order Amount</f:facet>
+ <h:outputText id="ShippingAmountValue" value="#{task.variables['amount']}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
- <h:column>
- <f:facet name="header">Customer</f:facet>
- <h:outputText value="#{task.variables['customer']}" />
+ <h:column id="column3">
+ <f:facet id="ShippingCustomerFacet" name="header">Customer</f:facet>
+ <h:outputText id="ShippingCustomerValue" value="#{task.variables['customer']}" />
</h:column>
- <h:column>
- <s:button action="#{ship.viewTask}" taskInstance="#{task}"
+ <h:column id="column4">
+ <s:button id="ShipButton" action="#{ship.viewTask}" taskInstance="#{task}"
value="Ship"/>
</h:column>
</h:dataTable>
Modified: trunk/examples/dvdstore/view/admin/process.xhtml
===================================================================
--- trunk/examples/dvdstore/view/admin/process.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/admin/process.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -26,30 +26,31 @@
<p>There are no active processes.</p>
</f:subview>
- <h:dataTable value="#{processInstanceList}"
+ <h:dataTable id="ProcessListDataTable"
+ value="#{processInstanceList}"
var="process"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol"
rendered="#{not empty processInstanceList}">
- <h:column>
- <f:facet name="header">Process Definition</f:facet>
+ <h:column id="column1">
+ <f:facet id="ProcessDefFacet" name="header">Process Definition</f:facet>
#{process.processDefinition.name}
</h:column>
- <h:column>
- <f:facet name="header">Process Start</f:facet>
- <h:outputText value="#{process.start}">
+ <h:column id="column2">
+ <f:facet id="ProcessStartFacet" name="header">Process Start</f:facet>
+ <h:outputText id="ProcessStartTime" value="#{process.start}">
<s:convertDateTime type="both"/>
</h:outputText>
</h:column>
- <h:column>
- <f:facet name="header">Current Node</f:facet>
+ <h:column id="column3">
+ <f:facet id="CurrentNodeFacet" name="header">Current Node</f:facet>
#{process.rootToken.node.name}
</h:column>
- <h:column>
- <f:facet name="header">Current Node Enter</f:facet>
- <h:outputText value="#{process.rootToken.nodeEnter}">
+ <h:column id="column4">
+ <f:facet id="CurrentNodeEnterFacet" name="header">Current Node Enter</f:facet>
+ <h:outputText id="CurrentNodeEnterTime" value="#{process.rootToken.nodeEnter}">
<s:convertDateTime type="both"/>
</h:outputText>
</h:column>
Modified: trunk/examples/dvdstore/view/admin/ship.xhtml
===================================================================
--- trunk/examples/dvdstore/view/admin/ship.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/admin/ship.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -23,77 +23,78 @@
<p>Please enter the tracking number below.</p>
<div class="cntInfo">
- <h:form>
- <h:panelGrid columns="2">
- <h:outputText value="Order Number:" />
- <h:outputText value="#{order.orderId}" />
+ <h:form id="ShippingForm">
+ <h:panelGrid id="ShippingDetailPanel" columns="2">
+ <h:outputText id="OrderIdText" value="Order Number:" />
+ <h:outputText id="OrderIdValue" value="#{order.orderId}" />
- <h:outputText value="Order date:" />
- <h:outputText value="#{order.orderDate}">
+ <h:outputText id="OrderDateText" value="Order date:" />
+ <h:outputText id="OrderDateValue" value="#{order.orderDate}">
<s:convertDateTime type="both" dateStyle="full"/>
</h:outputText>
- <h:outputText value="Net Amount:" />
- <h:outputText value="#{order.netAmount}">
+ <h:outputText id="NetAmountText" value="Net Amount:" />
+ <h:outputText id="NetAmountValue" value="#{order.netAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="Tax:" />
- <h:outputText value="#{order.tax}">
+ <h:outputText id="TaxText" value="Tax:" />
+ <h:outputText id="TaxValue" value="#{order.tax}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="Total Amount:" />
- <h:outputText value="#{order.totalAmount}">
+ <h:outputText id="TotalAmountText" value="Total Amount:" />
+ <h:outputText id="TotalAmountValue" value="#{order.totalAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="Tracking number:" />
- <h:panelGroup>
+ <h:outputText id="TrackingNumberText" value="Tracking number:" />
+ <h:panelGroup id="TrackingNumberPanel">
<!-- required, min length=4 -->
<h:inputText id="trackingNumber" value="#{ship.track}" required="true"/>
- <h:message for="trackingNumber" styleClass="cntError" />
+ <h:message id="message" for="trackingNumber" styleClass="cntError" />
</h:panelGroup>
</h:panelGrid>
<div class="cntInfo">
- <h:dataTable value="#{order.orderLines}"
+ <h:dataTable id="OrderLinesDataTable"
+ value="#{order.orderLines}"
var="item"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartQuantityColumn}" />
+ <h:column id="column1">
+ <f:facet id="QuantityFacet" name="header">
+ <h:outputText id="QuantityText" value="#{messages.cartQuantityColumn}" />
</f:facet>
- <h:outputText value="#{item.quantity}"/>
+ <h:outputText id="QuantityValue" value="#{item.quantity}"/>
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartTitleColumn}" />
+ <h:column id="column2">
+ <f:facet id="TitleFacet" name="header">
+ <h:outputText id="TitleText" value="#{messages.cartTitleColumn}" />
</f:facet>
- <h:outputText value="#{item.product.title}" />
+ <h:outputText id="TitleValue" value="#{item.product.title}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartActorColumn}" />
+ <h:column id="column3">
+ <f:facet id="ActorFacet" name="header">
+ <h:outputText id="ActorText" value="#{messages.cartActorColumn}" />
</f:facet>
- <h:outputText value="#{item.product.actors[0].name}" />
+ <h:outputText id="ActorValue" value="#{item.product.actors[0].name}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartPriceColumn}" />
+ <h:column id="column4">
+ <f:facet id="PriceFacet" name="header">
+ <h:outputText id="PriceText" value="#{messages.cartPriceColumn}" />
</f:facet>
- <h:outputText value="#{item.product.price}">
+ <h:outputText id="PriceValue" value="#{item.product.price}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
</h:dataTable>
</div>
- <h:commandButton action="#{ship.ship}" value="Ship" />
+ <h:commandButton id="ShipButton" action="#{ship.ship}" value="Ship" />
</h:form>
</div>
</ui:define>
Modified: trunk/examples/dvdstore/view/browse.xhtml
===================================================================
--- trunk/examples/dvdstore/view/browse.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/browse.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -35,14 +35,14 @@
<ui:repeat value="#{topProducts}" var="item">
<div class="bestinner">
<div class="besttitle">
- <s:link view="/dvd.xhtml">
+ <s:link id="TitleLink" view="/dvd.xhtml">
#{fn:length(item.title) gt 14 ? fn:substring(item.title,0,13) : item.title}
- <f:param name="id" value="#{item.productId}"/>
+ <f:param id="ProductIdForTextLink" name="id" value="#{item.productId}"/>
</s:link>
</div>
<div class="bestimage">
- <s:link view="/dvd.xhtml">
- <f:param name="id" value="#{item.productId}"/>
+ <s:link id="ImageLink" view="/dvd.xhtml">
+ <f:param id="ProductIdForImage" name="id" value="#{item.productId}"/>
<img src="#{item.imageURL}" />
</s:link>
</div>
@@ -53,21 +53,21 @@
<f:subview id="searchresults" rendered="#{searchResults.rowCount == 0}">
<h2>
- <h:outputText value="#{messages.noSearchResultsHeader}" />
+ <h:outputText id="NoResultsMessage" value="#{messages.noSearchResultsHeader}" />
</h2>
</f:subview>
- <h:form rendered="#{searchResults.rowCount > 0}">
+ <h:form id="SearchResultsForm" rendered="#{searchResults.rowCount > 0}">
<div class="controlBar">
<div class="buttonbox">
<div class="button">
- <h:commandLink action="#{search.nextPage}" rendered="#{!search.lastPage}">
+ <h:commandLink id="NextPageLink" action="#{search.nextPage}" rendered="#{!search.lastPage}">
<img src="img/arrow-r.png" />
</h:commandLink>
 
</div>
<div class="button">
- <h:commandLink action="#{search.prevPage}" rendered="#{!search.firstPage}">
+ <h:commandLink id="PreviousPageLink" action="#{search.prevPage}" rendered="#{!search.firstPage}">
<img src="img/arrow-l.png" />
</h:commandLink>
 
@@ -77,46 +77,48 @@
<div class="message">#{messages.searchResultsHeader}</div>
</div>
- <h:dataTable value="#{searchResults}"
+ <h:dataTable id="SearchResultsTable"
+ value="#{searchResults}"
var="product"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="results"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.searchResultsAdd}" />
+ <h:column id="column1">
+ <f:facet id="AddToCartFacet" name="header">
+ <h:outputText id="AddToCartText" value="#{messages.searchResultsAdd}" />
</f:facet>
- <h:selectBooleanCheckbox value="#{searchSelections[product]}"/>
+ <h:selectBooleanCheckbox id="AddToCartCheckbox" value="#{searchSelections[product]}"/>
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.searchResultsTitle}" />
+ <h:column id="column2">
+ <f:facet id="TitleFacet" name="header">
+ <h:outputText id="TitleText" value="#{messages.searchResultsTitle}" />
</f:facet>
- <s:link view="/dvd.xhtml" value="#{product.title}">
- <f:param name="id" value="#{product.productId}"/>
+ <s:link id="TitleLink" view="/dvd.xhtml" value="#{product.title}">
+ <f:param id="ProductId" name="id" value="#{product.productId}"/>
</s:link>
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="Starring" />
+ <h:column id="column3">
+ <f:facet id="StarringFacet" name="header">
+ <h:outputText id="StarringText" value="Starring" />
</f:facet>
- <h:outputText value="#{product.actors[0].name}" />
+ <h:outputText id="StarringValue" value="#{product.actors[0].name}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.searchResultsPrice}" />
+ <h:column id="column4">
+ <f:facet id="PriceFacet" name="header">
+ <h:outputText id="PriceText" value="#{messages.searchResultsPrice}" />
</f:facet>
- <h:outputText value="#{product.price}">
+ <h:outputText id="PriceValue" value="#{product.price}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
</h:dataTable>
- <h:commandButton action="#{search.addAllToCart}"
+ <h:commandButton id="SearchUpdateButton"
+ action="#{search.addAllToCart}"
value="#{messages.searchUpdateButton}"/>
</h:form>
Modified: trunk/examples/dvdstore/view/checkout.xhtml
===================================================================
--- trunk/examples/dvdstore/view/checkout.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/checkout.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -29,85 +29,90 @@
<f:subview id="emptycart" rendered="#{empty cart.cart}">
<p>Your cart is empty.</p>
- <h:form>
- <h:commandButton action="browse" value="Continue Shopping" />
+ <h:form id="EmptyCartForm">
+ <h:commandButton id="ContinueShoppingButton" action="browse" value="Continue Shopping" />
</h:form>
</f:subview>
<f:subview id="cartdetails" rendered="#{not empty cart.cart}">
- <h:form>
- <h:dataTable value="#{cart.cart}" var="item"
+ <h:form id="CartDetailsForm">
+ <h:dataTable id="CartItemsTable"
+ value="#{cart.cart}" var="item"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartRemoveColumn}" />
+ <h:column id="column1">
+ <f:facet id="CartRemoveFacet" name="header">
+ <h:outputText id="CartRemoveText" value="#{messages.cartRemoveColumn}" />
</f:facet>
- <h:selectBooleanCheckbox value="#{cart.cartSelection[item]}"/>
+ <h:selectBooleanCheckbox id="CartRemoveCheckbox" value="#{cart.cartSelection[item]}"/>
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartTitleColumn}" />
+ <h:column id="column2">
+ <f:facet id="TitleFacet" name="header">
+ <h:outputText id="TitleText" value="#{messages.cartTitleColumn}" />
</f:facet>
- <h:outputText value="#{item.product.title}" />
+ <h:outputText id="TitleValueText" value="#{item.product.title}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartActorColumn}" />
+ <h:column id="column3">
+ <f:facet id="ActorFacet" name="header">
+ <h:outputText id="ActorText" value="#{messages.cartActorColumn}" />
</f:facet>
- <h:outputText value="#{item.product.actors[0].name}" />
+ <h:outputText id="ActorValueText" value="#{item.product.actors[0].name}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartPriceColumn}" />
+ <h:column id="column4">
+ <f:facet id="PriceFacet" name="header">
+ <h:outputText id="PriceText" value="#{messages.cartPriceColumn}" />
</f:facet>
- <h:outputText value="#{item.product.price}">
+ <h:outputText id="PriceValueText" value="#{item.product.price}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartQuantityColumn}" />
+ <h:column id="column5">
+ <f:facet id="QuantityFacet" name="header">
+ <h:outputText id="QuantityText" value="#{messages.cartQuantityColumn}" />
</f:facet>
- <h:inputText value="#{item.quantity}" size="6" />
+ <h:inputText id="QuantityValueText" value="#{item.quantity}" size="6" />
</h:column>
</h:dataTable>
- <h:commandButton action="browse"
+ <h:commandButton id="ContinueShoppingButton"
+ action="browse"
value="Continue Shopping" />
 
- <h:commandButton action="#{cart.resetCart}"
+ <h:commandButton id="ResetCartButton"
+ action="#{cart.resetCart}"
value="Empty Cart" />
 
- <h:commandButton action="#{cart.updateCart}"
+ <h:commandButton id="UpdateCartButton"
+ action="#{cart.updateCart}"
value="#{messages.checkoutUpdateButton}" />
</h:form>
<div style="width: 100%;">
<div class="cntInfo" style="float:right;">
- <h:panelGrid columns="2">
- <h:outputText value="#{messages.checkoutSubtotal}" />
- <h:outputText value="#{cart.subtotal}">
+ <h:panelGrid id="CostSummary" columns="2">
+ <h:outputText id="CartSubtotalText" value="#{messages.checkoutSubtotal}" />
+ <h:outputText id="CartSubtotalValue" value="#{cart.subtotal}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="#{messages.checkoutTax}" />
- <h:outputText value="#{cart.tax}">
+ <h:outputText id="CartTaxText" value="#{messages.checkoutTax}" />
+ <h:outputText id="CartTaxValue" value="#{cart.tax}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="#{messages.checkoutTotal}" />
- <h:outputText value="#{cart.total}">
+ <h:outputText id="CartTotalText" value="#{messages.checkoutTotal}" />
+ <h:outputText id="CartTotalValue" value="#{cart.total}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:panelGrid>
<f:subview id="purchaseaction" rendered="#{identity.loggedIn}">
- <h:form>
- <h:commandButton action="#{checkout.createOrder}"
+ <h:form id="PurchaseActionForm">
+ <h:commandButton id="PurchaseButton"
+ action="#{checkout.createOrder}"
value="#{messages.checkoutPurchaseButton}" />
</h:form>
</f:subview>
Modified: trunk/examples/dvdstore/view/complete.xhtml
===================================================================
--- trunk/examples/dvdstore/view/complete.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/complete.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -20,50 +20,51 @@
<f:subview id="no_order" rendered="#{completedOrder == null}">
<p>Your order could not be completed.</p>
- <h:form>
- <h:commandButton action="browse" value="Continue Shopping" />
+ <h:form id="NoOrderForm">
+ <h:commandButton id="ContinueShoppingButton" action="browse" value="Continue Shopping" />
</h:form>
</f:subview>
<f:subview id="orderdetail" rendered="#{completedOrder != null}">
<h2>#{messages.checkoutCompleteHeader}</h2>
- <h:form>
- <h:dataTable value="#{completedOrder.orderLines}"
+ <h:form id="OrderDetailForm">
+ <h:dataTable id="OrderDetailDataTable"
+ value="#{completedOrder.orderLines}"
var="item"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartItemColumn}" />
+ <h:column id="column1">
+ <f:facet id="ItemFacet" name="header">
+ <h:outputText id="ItemText" value="#{messages.cartItemColumn}" />
</f:facet>
- <h:outputText value="#{item.position}" />
+ <h:outputText id="ItemValue" value="#{item.position}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartQuantityColumn}" />
+ <h:column id="column2">
+ <f:facet id="QuantityFacet" name="header">
+ <h:outputText id="QuantityText" value="#{messages.cartQuantityColumn}" />
</f:facet>
- <h:outputText value="#{item.quantity}" />
+ <h:outputText id="QuantityValue" value="#{item.quantity}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartTitleColumn}" />
+ <h:column id="column3">
+ <f:facet id="TitleFacet" name="header">
+ <h:outputText id="TitleText" value="#{messages.cartTitleColumn}" />
</f:facet>
- <h:outputText value="#{item.product.title}" />
+ <h:outputText id="TitleValue" value="#{item.product.title}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartActorColumn}" />
+ <h:column id="column4">
+ <f:facet id="ActorFacet" name="header">
+ <h:outputText id="ActorText" value="#{messages.cartActorColumn}" />
</f:facet>
- <h:outputText value="#{item.product.actors[0].name}" />
+ <h:outputText id="ActorValue" value="#{item.product.actors[0].name}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartPriceColumn}" />
+ <h:column id="column5">
+ <f:facet id="PriceFacet" name="header">
+ <h:outputText id="PriceText" value="#{messages.cartPriceColumn}" />
</f:facet>
- <h:outputText value="#{item.product.price}">
+ <h:outputText id="PriceValue" value="#{item.product.price}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
@@ -73,19 +74,19 @@
<div style="width: 100%;">
<div class="cntInfo" style="float: right;">
- <h:panelGrid columns="2">
- <h:outputText value="#{messages.checkoutSubtotal}" />
- <h:outputText value="#{completedOrder.netAmount}">
+ <h:panelGrid id="CheckoutSummary" columns="2">
+ <h:outputText id="CartSubtotalText" value="#{messages.checkoutSubtotal}" />
+ <h:outputText id="CartSubtotalValue" value="#{completedOrder.netAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="#{messages.checkoutTax}" />
- <h:outputText value="#{completedOrder.tax}">
+ <h:outputText id="CartTaxText" value="#{messages.checkoutTax}" />
+ <h:outputText id="CartTaxValue" value="#{completedOrder.tax}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="#{messages.checkoutTotal}" />
- <h:outputText value="#{completedOrder.totalAmount}">
+ <h:outputText id="CartTotalText" value="#{messages.checkoutTotal}" />
+ <h:outputText id="CartTotalValue" value="#{completedOrder.totalAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:panelGrid>
@@ -97,12 +98,12 @@
<p class="orderBox cntAlert">
Thank you for ordering.
- <h:outputText value="#{completedOrder.totalAmount}">
+ <h:outputText id="TotalAmountValue" value="#{completedOrder.totalAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- charged was to your <h:outputText value="#{completedOrder.customer.creditCardTypeString}" />.
+ charged was to your <h:outputText id="CreditCartType" value="#{completedOrder.customer.creditCardTypeString}" />.
Your order number is
- <h:outputText value="#{completedOrder.orderId}" />.
+ <h:outputText id="OrderId" value="#{completedOrder.orderId}" />.
</p>
</f:subview>
</ui:define>
Modified: trunk/examples/dvdstore/view/confirm.xhtml
===================================================================
--- trunk/examples/dvdstore/view/confirm.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/confirm.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -24,62 +24,63 @@
</f:subview>
<f:subview id="orderdetail" rendered="#{currentOrder != null}">
- <h:form>
- <h:dataTable value="#{currentOrder.orderLines}" var="line"
+ <h:form id="OrderDetailForm">
+ <h:dataTable id="OrderDetailDataTable"
+ value="#{currentOrder.orderLines}" var="line"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartTitleColumn}" />
+ <h:column id="column1">
+ <f:facet id="TitleFacet" name="header">
+ <h:outputText id="TitleText" value="#{messages.cartTitleColumn}" />
</f:facet>
- <h:outputText value="#{line.product.title}" />
+ <h:outputText id="TitleValue" value="#{line.product.title}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartActorColumn}" />
+ <h:column id="column2">
+ <f:facet id="ActorFacet" name="header">
+ <h:outputText id="ActorText" value="#{messages.cartActorColumn}" />
</f:facet>
- <h:outputText value="#{line.product.actors[0].name}" />
+ <h:outputText id="ActorValue" value="#{line.product.actors[0].name}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartPriceColumn}" />
+ <h:column id="column3">
+ <f:facet id="PriceFacet" name="header">
+ <h:outputText id="PriceText" value="#{messages.cartPriceColumn}" />
</f:facet>
- <h:outputText value="#{line.product.price}">
+ <h:outputText id="PriceValue" value="#{line.product.price}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartQuantityColumn}" />
+ <h:column id="column4">
+ <f:facet id="QuantityFacet" name="header">
+ <h:outputText id="QuantityText" value="#{messages.cartQuantityColumn}" />
</f:facet>
- <h:outputText value="#{line.quantity}"/>
+ <h:outputText id="QuantityValue" value="#{line.quantity}"/>
</h:column>
</h:dataTable>
</h:form>
<div style="width: 100%;">
<div class="cntInfo" style="float:right;">
- <h:panelGrid columns="2">
- <h:outputText value="#{messages.checkoutSubtotal}" />
- <h:outputText value="#{currentOrder.netAmount}">
+ <h:panelGrid id="CostSummary" columns="2">
+ <h:outputText id="CartSubtotalText" value="#{messages.checkoutSubtotal}" />
+ <h:outputText id="CartSubtotalValue" value="#{currentOrder.netAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="#{messages.checkoutTax}" />
- <h:outputText value="#{currentOrder.tax}">
+ <h:outputText id="CartTaxText" value="#{messages.checkoutTax}" />
+ <h:outputText id="CartTaxValue" value="#{currentOrder.tax}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="#{messages.checkoutTotal}" />
- <h:outputText value="#{currentOrder.totalAmount}">
+ <h:outputText id="CartTotalText" value="#{messages.checkoutTotal}" />
+ <h:outputText id="CartTotalValue" value="#{currentOrder.totalAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:panelGrid>
- <h:form>
+ <h:form id="ConfirmOrCancelForm">
<h:commandButton action="purchase" value="Confirm" />
 
<h:commandButton action="cancel" value="Cancel" />
Modified: trunk/examples/dvdstore/view/dvd.xhtml
===================================================================
--- trunk/examples/dvdstore/view/dvd.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/dvd.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -28,19 +28,19 @@
</f:subview>
<div class="productinfo">
- <h:panelGrid columns="2">
- <h:outputText value="Title:" />
- <h:outputText value="#{dvd.title}" />
+ <h:panelGrid id="ItemInfo" columns="2">
+ <h:outputText id="TitleText" value="Title:" />
+ <h:outputText id="TitleValue" value="#{dvd.title}" />
- <h:outputText value="Starring:" />
- <h:panelGroup>
+ <h:outputText id="StarringText" value="Starring:" />
+ <h:panelGroup id="Actors">
<ui:repeat value="#{dvd.actors}" var="starring">
[#{starring.name}]
</ui:repeat>
</h:panelGroup>
- <h:outputText value="Price:" />
- <h:outputText value="#{dvd.price}" />
+ <h:outputText id="PriceText" value="Price:" />
+ <h:outputText id="PriceValue" value="#{dvd.price}" />
</h:panelGrid>
</div>
@@ -49,9 +49,9 @@
</div>
<div class="productbuttons">
- <s:button action="#{search.addToCart}" value="Add to Cart"/>
+ <s:button id="AddToCartButton" action="#{search.addToCart}" value="Add to Cart"/>
 
- <s:button view="/browse.xhtml" value="Back to Search"/>
+ <s:button id="BackToSearchButton" view="/browse.xhtml" value="Back to Search"/>
</div>
</div>
</ui:define>
Modified: trunk/examples/dvdstore/view/home.xhtml
===================================================================
--- trunk/examples/dvdstore/view/home.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/home.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -50,7 +50,7 @@
</p>
- <s:button view="/browse.xhtml" value="Start Shopping" />
+ <s:button id="StartShoppingButton" view="/browse.xhtml" value="Start Shopping" />
</ui:define>
</ui:composition>
Modified: trunk/examples/dvdstore/view/newuser/account.xhtml
===================================================================
--- trunk/examples/dvdstore/view/newuser/account.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/newuser/account.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -18,9 +18,9 @@
</ui:define>
<ui:define name="body">
- <h2><h:outputText value="#{messages.newCustomerHeader}" /></h2>
+ <h2><h:outputText id="NewCustomerHeader" value="#{messages.newCustomerHeader}" /></h2>
- <p><em><h:outputText value="#{messages.newCustomerInfo}" /></em></p>
+ <p><em><h:outputText id="NewCustomerInfo" value="#{messages.newCustomerInfo}" /></em></p>
<p>
@@ -31,17 +31,17 @@
</p>
<div class="cntInfo">
- <h:form>
+ <h:form id="NewAccountForm">
<table border="0">
<tr>
<td class="cntForm">#{messages.newCustomerUN}</td>
<td class="cntForm">
<h:inputText id="userName" required="true"
value="#{customer.userName}">
- <s:validate />
+ <s:validate/>
</h:inputText> *
</td>
- <td><h:message for="userName" styleClass="cntError" /></td>
+ <td><h:message id="MessageForUserName" for="userName" styleClass="cntError" /></td>
</tr>
<tr>
@@ -52,7 +52,7 @@
<s:validate />
</h:inputSecret> *
</td>
- <td><h:message for="password" styleClass="cntError" /></td>
+ <td><h:message id="MessageForPassword" for="password" styleClass="cntError" /></td>
</tr>
<tr>
@@ -62,11 +62,11 @@
value="#{editCustomer.passwordVerify}">
</h:inputSecret> *
</td>
- <td><h:message for="passwordVerify" styleClass="cntError" /></td>
+ <td><h:message id="MessageForPasswordVerify" for="passwordVerify" styleClass="cntError" /></td>
</tr>
</table>
- <h:commandButton action="next" value="Continue" />
+ <h:commandButton id="ContinueButton" action="next" value="Continue" />
</h:form>
</div>
</ui:define>
Modified: trunk/examples/dvdstore/view/newuser/card.xhtml
===================================================================
--- trunk/examples/dvdstore/view/newuser/card.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/newuser/card.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -18,17 +18,17 @@
</ui:define>
<ui:define name="body">
- <h2><h:outputText value="#{messages.newCustomerHeader}" /></h2>
+ <h2><h:outputText id="NewCustomerHeaderText" value="#{messages.newCustomerHeader}" /></h2>
- <p><em><h:outputText value="#{messages.newCustomerInfo}" /></em></p>
+ <p><em><h:outputText id="NewCustomerInfoText" value="#{messages.newCustomerInfo}" /></em></p>
<h:form>
<table border="0">
<tr>
<td>#{messages.newCustomerCCT}</td>
<td>
- <h:selectOneMenu value="#{customer.creditCardType}">
- <f:selectItems value="#{editCustomer.creditCardTypes}" />
+ <h:selectOneMenu id="CreditCardMenu" value="#{customer.creditCardType}">
+ <f:selectItems id="CreditCardTypes" value="#{editCustomer.creditCardTypes}" />
</h:selectOneMenu>
</td>
</tr>
@@ -39,41 +39,41 @@
<h:inputText id="creditCard" required="true"
value="#{customer.creditCard}" />
<f:verbatim>*</f:verbatim>
- <h:message for="creditCard" styleClass="cntError" />
+ <h:message id="MessageForCreditCard" for="creditCard" styleClass="cntError" />
</td>
</tr>
<tr>
<td>#{messages.newCustomerCCE}</td>
<td>
- <h:selectOneMenu value="#{customer.creditCardMonth}">
- <f:selectItem itemValue="1" itemLabel="#{messages.mo_1}" />
- <f:selectItem itemValue="2" itemLabel="#{messages.mo_2}" />
- <f:selectItem itemValue="3" itemLabel="#{messages.mo_3}" />
- <f:selectItem itemValue="4" itemLabel="#{messages.mo_4}" />
- <f:selectItem itemValue="5" itemLabel="#{messages.mo_5}" />
- <f:selectItem itemValue="6" itemLabel="#{messages.mo_6}" />
- <f:selectItem itemValue="7" itemLabel="#{messages.mo_7}" />
- <f:selectItem itemValue="8" itemLabel="#{messages.mo_8}" />
- <f:selectItem itemValue="9" itemLabel="#{messages.mo_9}" />
- <f:selectItem itemValue="10" itemLabel="#{messages.mo_10}" />
- <f:selectItem itemValue="11" itemLabel="#{messages.mo_11}" />
- <f:selectItem itemValue="12" itemLabel="#{messages.mo_12}" />
+ <h:selectOneMenu id="CreditCardMonthMenu" value="#{customer.creditCardMonth}">
+ <f:selectItem id="Jan" itemValue="1" itemLabel="#{messages.mo_1}" />
+ <f:selectItem id="Feb" itemValue="2" itemLabel="#{messages.mo_2}" />
+ <f:selectItem id="Mar" itemValue="3" itemLabel="#{messages.mo_3}" />
+ <f:selectItem id="Apr" itemValue="4" itemLabel="#{messages.mo_4}" />
+ <f:selectItem id="May" itemValue="5" itemLabel="#{messages.mo_5}" />
+ <f:selectItem id="Jun" itemValue="6" itemLabel="#{messages.mo_6}" />
+ <f:selectItem id="Jul" itemValue="7" itemLabel="#{messages.mo_7}" />
+ <f:selectItem id="Aug" itemValue="8" itemLabel="#{messages.mo_8}" />
+ <f:selectItem id="Sep" itemValue="9" itemLabel="#{messages.mo_9}" />
+ <f:selectItem id="Oct" itemValue="10" itemLabel="#{messages.mo_10}" />
+ <f:selectItem id="Nov" itemValue="11" itemLabel="#{messages.mo_11}" />
+ <f:selectItem id="Dec" itemValue="12" itemLabel="#{messages.mo_12}" />
</h:selectOneMenu>
- <h:selectOneMenu value="#{customer.creditCardYear}">
- <f:selectItem itemValue="2005" />
- <f:selectItem itemValue="2006" />
- <f:selectItem itemValue="2007" />
- <f:selectItem itemValue="2008" />
- <f:selectItem itemValue="2009" />
- <f:selectItem itemValue="2010" />
+ <h:selectOneMenu id="CreditCardYearMenu" value="#{customer.creditCardYear}">
+ <f:selectItem id="Year2005" itemValue="2005" />
+ <f:selectItem id="Year2006" itemValue="2006" />
+ <f:selectItem id="Year2007" itemValue="2007" />
+ <f:selectItem id="Year2008" itemValue="2008" />
+ <f:selectItem id="Year2009" itemValue="2009" />
+ <f:selectItem id="Year2010" itemValue="2010" />
</h:selectOneMenu>
</td>
</tr>
</table>
- <h:commandButton action="next" value="#{messages.newCustomerSubmit}" />
+ <h:commandButton id="SubmitNewCustomerButton" action="next" value="#{messages.newCustomerSubmit}" />
</h:form>
</ui:define>
Modified: trunk/examples/dvdstore/view/newuser/complete.xhtml
===================================================================
--- trunk/examples/dvdstore/view/newuser/complete.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/newuser/complete.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -22,7 +22,7 @@
<h1>Welcome to the DVD Store</h1>
<p>Your account has been created, and you have been automatically logged in.
- You can <s:link view="/browse.xhtml">start shopping</s:link> immediately.
+ You can <s:link id="StartShoppingLink" view="/browse.xhtml">start shopping</s:link> immediately.
</p>
</f:subview>
Modified: trunk/examples/dvdstore/view/newuser/contact.xhtml
===================================================================
--- trunk/examples/dvdstore/view/newuser/contact.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/newuser/contact.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -18,12 +18,12 @@
</ui:define>
<ui:define name="body">
- <h2><h:outputText value="#{messages.newCustomerHeader}" /></h2>
+ <h2><h:outputText id="CustomerHeaderText" value="#{messages.newCustomerHeader}" /></h2>
- <p><em><h:outputText value="#{messages.newCustomerInfo}" /></em></p>
+ <p><em><h:outputText id="NewCustomerInfoText" value="#{messages.newCustomerInfo}" /></em></p>
- <h:form>
- <s:validateAll>
+ <h:form id="NewAccountForm">
+ <s:validateAll id="ValidateAll">
<table border="0">
<tr>
<td class="cntForm">#{messages.newCustomerFN}</td>
@@ -31,7 +31,7 @@
<h:inputText id="firstName" required="true"
value="#{customer.firstName}" /> *
</td>
- <td><h:message for="firstName" styleClass="cntError" /></td>
+ <td><h:message id="MessageForFirstName" for="firstName" styleClass="cntError" /></td>
</tr>
<tr>
@@ -40,7 +40,7 @@
<h:inputText id="lastName" required="true"
value="#{customer.lastName}" /> *
</td>
- <td><h:message for="lastName" styleClass="cntError" /></td>
+ <td><h:message id="MessageForLastName" for="lastName" styleClass="cntError" /></td>
</tr>
<tr>
@@ -50,7 +50,7 @@
value="#{customer.address1}" /> *
</td>
<td>
- <h:message for="address1" styleClass="cntError" />
+ <h:message id="MessageForAddress1" for="address1" styleClass="cntError" />
</td>
</tr>
@@ -58,7 +58,7 @@
<tr>
<td>#{messages.newCustomerA2}</td>
<td>
- <h:inputText value="#{customer.address2}" />
+ <h:inputText id="Address2" value="#{customer.address2}" />
</td>
<td> </td>
</tr>
@@ -70,7 +70,7 @@
value="#{customer.city}" /> *
</td>
<td>
- <h:message for="city" styleClass="cntError" />
+ <h:message id="MessageForCity" for="city" styleClass="cntError" />
</td>
</tr>
@@ -82,7 +82,7 @@
value="#{customer.state}" /> *
</td>
<td>
- <h:message for="state" styleClass="cntError" />
+ <h:message id="MessageForState" for="state" styleClass="cntError" />
</td>
</tr>
@@ -93,7 +93,7 @@
value="#{customer.zip}" /> *
</td>
<td>
- <h:message for="zip" styleClass="cntError" />
+ <h:message id="MessageForZip" for="zip" styleClass="cntError" />
</td>
</tr>
@@ -103,7 +103,7 @@
<h:inputText id="email" value="#{customer.email}" required="true"/> *
</td>
<td>
- <h:message for="email" styleClass="cntError" />
+ <h:message id="MessageForEmail" for="email" styleClass="cntError" />
</td>
</tr>
@@ -113,14 +113,14 @@
<h:inputText id="phone" value="#{customer.phone}" />
</td>
<td>
- <h:message for="phone" styleClass="cntError" />
+ <h:message id="MessageForPhone" for="phone" styleClass="cntError" />
</td>
</tr>
</table>
</s:validateAll>
- <ui:remove><h:commandButton action="prev" value="Back" /></ui:remove>
- <h:commandButton action="next" value="Continue" />
+ <ui:remove><h:commandButton id="BackButton" action="prev" value="Back" /></ui:remove>
+ <h:commandButton id="ContinueButton" action="next" value="Continue" />
</h:form>
</ui:define>
Modified: trunk/examples/dvdstore/view/showorders.xhtml
===================================================================
--- trunk/examples/dvdstore/view/showorders.xhtml 2008-08-13 16:18:52 UTC (rev 8683)
+++ trunk/examples/dvdstore/view/showorders.xhtml 2008-08-13 18:27:29 UTC (rev 8684)
@@ -27,31 +27,32 @@
<f:subview id="ordersummary" rendered="#{orders.rowAvailable}">
- <h:dataTable value="#{orders}" var="item"
+ <h:dataTable id="OrdersDataTable"
+ value="#{orders}" var="item"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">Order Id</f:facet>
+ <h:column id="column1">
+ <f:facet id="OrderIdFacet" name="header">Order Id</f:facet>
#{item.orderId}
</h:column>
- <h:column>
- <f:facet name="header">Date</f:facet>
- <h:outputText value="#{item.orderDate}">
+ <h:column id="column2">
+ <f:facet id="OrderDateFacet" name="header">Date</f:facet>
+ <h:outputText id="OrderDateValue" value="#{item.orderDate}">
<s:convertDateTime type="both" dateStyle="full"/>
</h:outputText>
</h:column>
- <h:column>
- <f:facet name="header">Status</f:facet>
+ <h:column id="column3">
+ <f:facet id="StatusFacet" name="header">Status</f:facet>
#{item.status}
</h:column>
- <h:column>
- <s:button action="#{showorders.detailOrder}" value="Show Details" />
+ <h:column id="column4">
+ <s:button id="ShowDetailsButton" action="#{showorders.detailOrder}" value="Show Details" />
</h:column>
- <h:column>
- <s:button action="#{showorders.cancelOrder}" value="Cancel" rendered="#{item.open}"/>
+ <h:column id="column5">
+ <s:button id="CancelButton" action="#{showorders.cancelOrder}" value="Cancel" rendered="#{item.open}"/>
</h:column>
</h:dataTable>
@@ -59,68 +60,70 @@
<div class="cntInfo">
<h2>Order Details</h2>
- <h:panelGrid columns="2">
- <h:outputText value="Order Id:" />
- <h:outputText value="#{myorder.orderId}" />
+ <h:panelGrid id="OrderDetailsPanel" columns="2">
+ <h:outputText id="OrderIdText" value="Order Id:" />
+ <h:outputText id="OrderIdValue" value="#{myorder.orderId}" />
- <h:outputText value="Status:" />
- <h:panelGroup>
- <h:outputText value="#{myorder.status}" />
- <h:outputText value="(Tracking Number: #{myorder.trackingNumber})"
+ <h:outputText id="StatusText" value="Status:" />
+ <h:panelGroup id="StatusPanel">
+ <h:outputText id="StatusValue" value="#{myorder.status}" />
+ <h:outputText id="TrackingNumber"
+ value="(Tracking Number: #{myorder.trackingNumber})"
rendered="#{myorder.statusCode==3}"/>
</h:panelGroup>
- <h:outputText value="Order date:" />
- <h:outputText value="#{myorder.orderDate}">
+ <h:outputText id="OrderDateText" value="Order date:" />
+ <h:outputText id="OrderDateValue" value="#{myorder.orderDate}">
<s:convertDateTime type="both" dateStyle="full"/>
</h:outputText>
- <h:outputText value="Net Amount:" />
- <h:outputText value="#{myorder.netAmount}">
+ <h:outputText id="NetAmountText" value="Net Amount:" />
+ <h:outputText id="NetAmountValue" value="#{myorder.netAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="Tax:" />
- <h:outputText value="#{myorder.tax}">
+ <h:outputText id="TaxText" value="Tax:" />
+ <h:outputText id="TaxValue" value="#{myorder.tax}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
- <h:outputText value="Total Amount:" />
- <h:outputText value="#{myorder.totalAmount}">
+ <h:outputText id="TotalAmountText" value="Total Amount:" />
+ <h:outputText id="TotalAmountValue" value="#{myorder.totalAmount}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:panelGrid>
<div class="cntInfo">
- <h:dataTable value="#{myorder.orderLines}" var="item"
+ <h:dataTable id="OrderLinesDataTable"
+ value="#{myorder.orderLines}" var="item"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartTitleColumn}" />
+ <h:column id="column1">
+ <f:facet id="TitleFacet" name="header">
+ <h:outputText id="TitleText" value="#{messages.cartTitleColumn}" />
</f:facet>
- <h:outputText value="#{item.product.title}" />
+ <h:outputText id="TitleValue" value="#{item.product.title}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartActorColumn}" />
+ <h:column id="column2">
+ <f:facet id="ActorFacet" name="header">
+ <h:outputText id="ActorText" value="#{messages.cartActorColumn}" />
</f:facet>
- <h:outputText value="#{item.product.actors[0].name}" />
+ <h:outputText id="ActorValue" value="#{item.product.actors[0].name}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartQuantityColumn}" />
+ <h:column id="column3">
+ <f:facet id="QuantityFacet" name="header">
+ <h:outputText id="QuantityText" value="#{messages.cartQuantityColumn}" />
</f:facet>
- <h:outputText value="#{item.quantity}" />
+ <h:outputText id="QuantityValue" value="#{item.quantity}" />
</h:column>
- <h:column>
- <f:facet name="header">
- <h:outputText value="#{messages.cartPriceColumn}" />
+ <h:column id="column4">
+ <f:facet id="PriceFacet" name="header">
+ <h:outputText id="PriceText" value="#{messages.cartPriceColumn}" />
</f:facet>
- <h:outputText value="#{item.product.price}">
+ <h:outputText id="PriceValue" value="#{item.product.price}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</h:column>
More information about the seam-commits
mailing list