[jboss-cvs] jboss-seam/examples/dvdstore/view/WEB-INF/incl ...
Peter Muir
peter at bleepbleep.org.uk
Thu Jun 28 19:22:57 EDT 2007
User: pmuir
Date: 07/06/28 19:22:57
Added: examples/dvdstore/view/WEB-INF/incl store_nav.xhtml
cart.xhtml admin_nav.xhtml login.xhtml stats.xhtml
processmenu.xhtml searchbox.xhtml
Log:
Move DVD to new build
Revision Changes Path
1.1 date: 2007/06/28 23:22:57; author: pmuir; state: Exp;jboss-seam/examples/dvdstore/view/WEB-INF/incl/store_nav.xhtml
Index: store_nav.xhtml
===================================================================
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
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 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>
<script language="JavaScript">
function setClass(id, className) {
obj = document.getElementById(id);
if (obj != null) {
obj.className = className;
}
}
setClass("page_" + "#{page}", "current");
</script>
</div>
1.1 date: 2007/06/28 23:22:57; author: pmuir; state: Exp;jboss-seam/examples/dvdstore/view/WEB-INF/incl/cart.xhtml
Index: cart.xhtml
===================================================================
<f:subview xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:s="http://jboss.com/products/seam/taglib"
rendered="#{!cart.isEmpty}">
<div class="menu">
<dl>
<dt class="menuHeader">#{messages.searchCartHeader}</dt>
<dd class="menuForm">
<h:dataTable value="#{cart.cart}" var="item"
styleClass="dvdtable"
headerClass="dvdtablehead"
rowClasses="dvdtableodd,dvdtableeven"
columnClasses="dvdtablecol">
<h:column>
#{item.quantity}
</h:column>
<h:column>
#{item.product.title}
</h:column>
<!--
<h:column>
#{item.product.price}
</h:column>
-->
</h:dataTable>
</dd>
<dd>
<h:outputText value="#{messages.checkoutTotal}" />
<h:outputText value="#{cart.total}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
</dd>
<h:form>
<dd>
<h:commandButton action="checkout" value="#{messages.checkoutButton}"
styleClass="formButton" style="width: 166px;" />
</dd>
</h:form>
</dl>
</div>
</f:subview>
1.1 date: 2007/06/28 23:22:57; author: pmuir; state: Exp;jboss-seam/examples/dvdstore/view/WEB-INF/incl/admin_nav.xhtml
Index: admin_nav.xhtml
===================================================================
<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>
<script language="JavaScript">
function setClass(id, className) {
obj = document.getElementById(id);
if (obj != null) {
obj.className = className;
}
}
setClass("page_" + "#{page}", "current");
</script>
</div>
1.1 date: 2007/06/28 23:22:57; author: pmuir; state: Exp;jboss-seam/examples/dvdstore/view/WEB-INF/incl/login.xhtml
Index: login.xhtml
===================================================================
<div class="menu"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<h:form 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>
<dt><h:outputText value="#{messages.loginPass}" /></dt>
<dd><h:inputSecret value="#{identity.password}" size="16"/></dd>
<dd>
<h:commandButton action="#{identity.login}" value="#{messages.loginPrompt}"
styleClass="formButton" style="width: 166px;"/>
</dd>
</dl>
</dd>
</dl>
<dl>
<dt class="menuFooter">
<h:commandLink action="#{editCustomer.startEdit}">Create Account</h:commandLink>
</dt>
</dl>
</h:form>
<h:form 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"
styleClass="formButton" style="width: 166px;"/>
</dd>
</dl>
</dd>
</dl>
</h:form>
</div>
1.1 date: 2007/06/28 23:22:57; author: pmuir; state: Exp;jboss-seam/examples/dvdstore/view/WEB-INF/incl/stats.xhtml
Index: stats.xhtml
===================================================================
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<f:subview rendered="#{s:hasRole('admin')}">
<div class="menu">
<dl>
<dt class="menuHeader">Statistics</dt>
<dd class="menuSection">
<dl>
<dt>Inventory</dt>
<dd>#{stats.unitsSold} sold, #{stats.totalInventory} in stock</dd>
<dt>Sales</dt>
<dd>
<h:outputText value="#{stats.totalSales}">
<f:convertNumber type="currency" currencySymbol="$" />
</h:outputText>
from #{stats.numberOrders} orders
</dd>
</dl>
</dd>
</dl>
</div>
</f:subview>
</div>
1.1 date: 2007/06/28 23:22:57; author: pmuir; state: Exp;jboss-seam/examples/dvdstore/view/WEB-INF/incl/processmenu.xhtml
Index: processmenu.xhtml
===================================================================
<f:subview rendered="#{s:hasRole('admin')}"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<div class="menu">
<dl>
<dt class="menuHeader">Admin Options</dt>
<dd class="menuForm">
<h:form>
<dl>
<dt>Process Management</dt>
<dd>
<h:selectOneMenu value="#{processDefinitionSwitcher.currentProcessDefinition}">
<f:selectItems value="#{processDefinitionSwitcher.processDefinitions}"/>
</h:selectOneMenu>
</dd>
<dd>
<h:commandButton action="#{processDefinitionSwitcher.switchProcess}"
value="Switch Order Process"
styleClass="formButton" style="width: 166px;"/>
</dd>
</dl>
</h:form>
</dd>
</dl>
</div>
</f:subview>
1.1 date: 2007/06/28 23:22:57; author: pmuir; state: Exp;jboss-seam/examples/dvdstore/view/WEB-INF/incl/searchbox.xhtml
Index: searchbox.xhtml
===================================================================
<div class="menu"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<dl>
<dt class="menuHeader">#{messages.browseSearchHeader}</dt>
<dd class="menuForm"><h:form>
<dl>
<dt class="logo">
<h:graphicImage value="img/JBossLogo1CG.png"/>
</dt>
<ui:remove>
<dt><h:outputText value="#{messages.searchCategory}"/></dt>
<dd>
<h:selectOneMenu value="#{search.category}">
<s:convertEntity />
<s:selectItems value="#{allCategories.resultList}"
var="category"
label="#{category.name}"/>
</h:selectOneMenu>
</dd>
</ui:remove>
<dd><h:inputText value="#{search.searchQuery}" size="15" /></dd>
<dt><h:outputText value="#{messages.searchPageSize}" /></dt>
<dd><h:selectOneMenu 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}"
value="#{messages.searchButton}" styleClass="formButton"
style="width: 166px;" /></dd>
</dl>
</h:form></dd>
</dl>
</div>
More information about the jboss-cvs-commits
mailing list