1 <?xml version="1.0" encoding="UTF-8" ?>
2 <html xmlns="http://www.w3.org/1999/xhtml"
3 xmlns:ui="http://java.sun.com/jsf/facelets"
4 xmlns:h="http://xmlns.jcp.org/jsf/html"
5 xmlns:f="http://xmlns.jcp.org/jsf/core"
8 <ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
9 <ui:define name="guest_title">Warenkorb anzeigen</ui:define>
11 <ui:define name="menu">
12 <ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
15 <ui:define name="content_header">
16 Alle im Warenkorb befindlichen Artikel:
19 <ui:define name="content">
20 <h:dataTable var="item" value="#{basketController.allItems()}" headerClass="table_header_column" class="table" rendered="#{basketController.hasItems()}">
22 <f:facet name="header">Artikel:</f:facet>
24 <ui:fragment rendered="#{item.isProductType()}">
30 <f:facet name="header">Einzelpreis:</f:facet>
32 <ui:fragment rendered="#{item.isProductType()}">
33 <h:outputText class="price" value="#{item.product.price}">
34 <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
40 <f:facet name="header">Anzahl ändern:</f:facet>
42 <h:form acceptcharset="utf-8" id="add_item">
43 <h:commandButton class="submit" id="add" value="Ändern" action="#{basketController.changeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
45 <h:inputText class="input" id="amount" size="3" maxlength="20" value="#{item.amount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
47 If the customer wants to order more, he need to call in.
49 <f:validator for="amount" validatorId="ItemAmountValidator" />
55 <f:facet name="header">Zwischensumme:</f:facet>
57 <h:outputText id="item_price" value="#{basketController.calculateItemPrice(item)}" rendered="#{item.isProductType()}">
58 <f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
63 <h:outputText class="empty_basket" value="Es befinden sich derzeit keine Artikel im Warenkorb." rendered="#{basketController.isEmpty()}" />
66 <ui:define name="footer">
67 <ui:include id="footer" class="guest_footer" src="/WEB-INF/templates/guest/guest_footer.tpl" />