xmlns:ui="http://java.sun.com/jsf/facelets">
<div class="footer">
<ul class="footer_nav">
- <li><a href="${basePath}/">Home</a></li>
- <li><a href="${basePath}/imprint.jsp">Impressum</a></li>
- <li><a href="${basePath}/terms.jsp">AGBs</a></li>
- <li><a href="${basePath}/privacy.jsp">Datenschutz</a></li>
+ <li><h:link outcome="index" value="Home" /></li>
+ <li><h:link outcome="imprint" value="Impressum" /></li>
+ <li><h:link outcome="terms" value="AGBs" /></li>
+ <li><h:link outcome="privacy" value="Datenschutz" /></li>
</ul>
</div>
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<div class="menu">
+ <div class="menu_header">
+ Home
+ </div>
<ul>
- <li><a href="${basePath}/" title="Eingangsseite">Home</a></li>
- <li><a href="${basePath}/basket.jsp" title="Zum Warenkorb">Zum Warenkorb</a></li>
- <li><a href="${basePath}/bye.jsp" title="Sitzung beennden">Sitzung beenden</a></li>
+ <li><h:link title="Eingangsseite" outcome="index" value="Home" /></li>
+ <li><h:link title="Zum Warenkorb" outcome="basket" value="Zum Warenkorb" /></li>
+ <li><h:link title="Sitzung beennden" outcome="bye" value="Sitzung beenden" /></li>
</ul>
+ <div class="menu_header">
+ Kundenlogin
+ </div>
<ul>
- <li><a href="${basePath}/customer/login.jsp" title="Login für bestehende Kunden">Einloggen</a></li>
- <li><a href="${basePath}/customer/register.jsp" title="Anmeldung als neuer Kunde">Neuer Kunde</a></li>
- <li><a href="${basePath}/customer/lost_passwd.jsp" title="Neues Passwort erstellen">Passwort vergessen?</a></li>
+ <li><h:link title="Login für bestehende Kunden" outcome="customer_login" value="Einloggen" /></li>
+ <li><h:link title="Anmeldung als neuer Kunde" outcome="customer_register" value="Neuer Kunde" /></li>
+ <li><h:link title="Neues Passwort erstellen" outcome="customer_lost_passwd" value="Passwort vergessen?" /></li>
</ul>
</div>
</ui:composition>
xmlns:f="http://xmlns.jcp.org/jsf/core"
>
- <c:set var="basePath" value="#{request.contextPath}" />
-
<!--
TODO: Not used:
xmlns:basket="http://mxchange.org/jshop/tags/basket"
TODO Not used!
<basket:mini_basket basket="#{basket}" />
- <h:panelGrid class="table" columnClasses="table_data_column" headerClass="table_header_column">
+ <h:panelGrid class="basket_item_table" columnClasses="table_data_column" headerClass="table_header_column">
<f:facet name="header">
Bestellen? Bestellmenge: Produkt: Einzelpreis:
</f:facet>
<tbody>
<ui:repeat var="product" value="#{controller.availableProducts}">
- <c:set var="isAdded" value="#{controller.basket.isAdded(product)}" />
+ <!-- Cache isAdded call to reduce calls //-->
+ <c:set var="isAdded" value="#{basket.isAdded(product)}" />
<ui:fragment rendered="#{isAdded == true}">
<tr>
<td class="table_data_column">
- <h:link value="basket.xhtml" title="Zum Warenkorb">Warenkorb</h:link>
+ <h:link outcome="basket" title="Zum Warenkorb" value="Warenkorb" />
</td>
<td class="table_data_column">
- #{controller.basket.item.amount}
+ #{basket.item.amount}
</td>
<td class="table_data_column">
</td>
<td class="table_data_column" align="right">
- <h:outputText class="price" value="#{controller.basket.item.calculateTotalPrice()}">
+ <h:outputText class="price" value="#{basket.item.calculateTotalPrice()}">
<f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" />
</h:outputText>
</td>
</tr>
</ui:fragment>
+
<ui:fragment rendered="#{isAdded == false}">
<tr>
<td class="table_data_column">
- <h:commandButton class="submit" id="add" value="Hinzufügen" action="#{controller.basket.addToBasket(product)}" />
+ <h:commandButton class="submit" id="add" value="Hinzufügen" action="#{basket.addToBasket(product)}" />
<h:inputHidden id="itemId" value="#{product.itemId}" />
<h:inputHidden id="itemType" value="Product" />
</td>