GENDER_MALE=Herr
GENDER_FEMALE=Frau
GENDER_COMPANY=Firma
-MiniBasketTag.basket_is_empty=Der Warenkorb ist leer.
-MiniBasketTag.last_item=Zuletzt hinzugefuegt: {0}
-MiniBasketTag.additional_items=Es befinden sich noch {0} weitere Produkte im Warenkorb.
-MiniBasketTag.to_basket=Zum Warenkorb
-MiniBasketTag.header=Warenkorb
+MINI_BASKET_IS_EMPTY=Der Warenkorb ist leer.
+MINI_BASKET_LAST_ITEM=Zuletzt hinzugefuegt: {0}
+MINI_BASKET_ADDITIONAL_ITEMS=Es befinden sich noch {0} weitere Produkte im Warenkorb.
+MINI_BASKET_TITLE=Warenkorb
ADMIN_CATEGORY_HAS_NO_PARENT=Keine Elternkategorie
YES=Ja
NO=Nein
ADMIN_PARENT_CATEGORY_CANNOT_BE_NULL=Elternkategorie darf nicht leer sein.
-ADMIN_CATEGORY_MUST_BE_SELECTED=Es muss eine Kategorie ausgewaehlt werden.
+ADMIN_CATEGORY_MUST_BE_SELECTED=Es muss eine Kategorie ausgew\u00e4hlt werden.
ERROR_AMOUNT_IS_NULL=Die Bestellmenge ist nicht gesetzt.
BUTTON_TITLE_ADD_ITEM_TO_BASKET=F\u00fcgt das Produkt dem Warenkorb hinzu.
INPUT_TITLE_ENTER_ITEM_AMOUNT=Geben Sie hier die Bestellmenge ein.
PAGE_TITLE_ADMIN_PRODUCTS=Produkte
BUTTON_RESET_FORM=Formular zur\u00fccksetzen
BUTTON_EDIT_ENTRIES=\u00c4ndern
-BUTTON_DELETE_ENTRIES=L\u00f6schen
+BUTTON_ADMIN_DELETE_ENTRIES=L\u00f6schen
ADMIN_ADD_PRODUCT_TITLE=Neues Produkt hinzuf\u00fcgen:
ADMIN_ADD_CATEGORY_TITLE=Neue Kategorie hinzuf\u00fcgen:
CATEGORY=Kategorie:
PLEASE_FILL_ALL_FIELDS=Bitte alle Felder ausf\u00fcllen:
-BUTTON_ADD_CATEGORY=Kategorie hinzuf\u00fcgen
+BUTTON_ADMIN_ADD_CATEGORY=Kategorie hinzuf\u00fcgen
ADMIN_ENTER_PRODUCT_TITLE=Produktbezeichnung:
ADMIN_ENTER_PRODUCT_TITLE_EXAMPLE=(z.B. <em>Pizza Italia</em>)
IS_AVAILABLE=Verf\u00fcgbar:
-BUTTON_ADD_PRODUCT=Produkt hinzuf\u00fcgen
+BUTTON_ADMIN_ADD_PRODUCT=Produkt hinzuf\u00fcgen
ADMIN_ADD_PRODUCT_NOTICE_TITLE=Hinweise zum Hinzuf\u00fcgen von Produkten:
ADMIN_ADD_PRODUCT_NOTICE_LINE1=Beim Preis keine W\u00e4hrungszeichen (wie \u20ac usw.) eingeben.
ADMIN_ADD_PRODUCT_NOTICE_LINE2=Kommastellen mit Punkt, nicht mit Komma abtrennen.
LINK_CUSTOMER_REGISTER=Neuer Kunde
LINK_CUSTOMER_PASSWORD_TITLE=Neues Passwort erstellen
LINK_CUSTOMER_PASSWORD=Passwort vergessen?
+LINK_TO_BASKET=Zum Warenkorb
+LINK_CONTINUE_SHOPPING=Weiter einkaufen
+LINK_CONTINUE_SHOPPING_TITLE=Klicken zum Fortfahren mit dem Einkauf.
+PAGE_TITLE_INDEX_SHOW_BASKET=Warenkorb anzeigen
+SUB_TITLE_INDEX_SHOW_BASKET=Alle im Warenkorb befindlichen Artikel:
+GUEST_ITEM_TITLE=Artikel:
+BUTTON_CHANGE_ITEM_AMOUNT=\u00c4ndern
+PAGE_TITLE_INDEX_IMPRINT=Impressum
+SUB_TITLE_INDEX_IMPRINT=Impressum
+PAGE_TITLE_INDEX_ITEM_ADDED=Produkt zum Warenkorb hinzugef\u00fcgt
+SUB_TITLE_INDEX_ITEM_ADDED=Produkt zum Warenkorb hinzugef\u00fcgt
+GUEST_ITEM_ADDED_TO_BASKET=Der Artikel {0} wurde zum Warenkorb hinzugef\u00fcgt.
GENDER_MALE=Mr.
GENDER_FEMALE=Mrs.
GENDER_COMPANY=Company
-MiniBasketTag.basket_is_empty=The basket is empty.
-MiniBasketTag.last_item=Last added item: {0}
-MiniBasketTag.additional_items=There are {0} items in the basketController.
-MiniBasketTag.to_basket=To basket
-MiniBasketTag.header=Basket
+MINI_BASKET_IS_EMPTY=The basket is empty.
+MINI_BASKET_LAST_ITEM=Last added item: {0}
+MINI_BASKET_ADDITIONAL_ITEMS=There are {0} items in the basketController.
+MINI_BASKET_TITLE=Basket
ADMIN_CATEGORY_HAS_NO_PARENT=No parent category
YES=Yes
NO=No
SINGLE_ITEM_PRICE=Single price:
CHANGE_ITEM_AMOUNT=Change ordered amount:
TOTAL_ITEM_PRICE=Sub total:
-TOTAL_ORDER_PRICE=Gesamtsumme:
+TOTAL_ORDER_PRICE=Total:
NO_ITEMS_ADDED_TO_BASKET=There are no items in the basket.
ITEM_NOT_ORDERED=Not ordered.
PAGE_TITLE_ADMIN_WELCOME=Welcome to administration area
PAGE_TITLE_ADMIN_PRODUCTS=Products
BUTTON_RESET_FORM=Reset form
BUTTON_EDIT_ENTRIES=Edit
-BUTTON_DELETE_ENTRIES=Delete
+BUTTON_ADMIN_DELETE_ENTRIES=Delete
ADMIN_ADD_PRODUCT_TITLE=Add a new product:
ADMIN_ADD_CATEGORY_TITLE=Add a new category:
CATEGORY=Category:
PLEASE_FILL_ALL_FIELDS=Please fill out all fields:
-BUTTON_ADD_CATEGORY=Add category
+BUTTON_ADMIN_ADD_CATEGORY=Add category
ADMIN_ENTER_PRODUCT_TITLE=Product title:
ADMIN_ENTER_PRODUCT_TITLE_EXAMPLE=e.g. <em>Pizza Italia</em>
IS_AVAILABLE=Available:
-BUTTON_ADD_PRODUCT=Add product
+BUTTON_ADMIN_ADD_PRODUCT=Add product
ADMIN_ADD_PRODUCT_NOTICE_TITLE=Notices for adding new product:
ADMIN_ADD_PRODUCT_NOTICE_LINE1=Please don't use currency symbol, such as \u20ac.
ADMIN_ADD_PRODUCT_NOTICE_LINE2=Separte with dot, not with comma (usual in Germany).
CUSTOMER_NUMBER=Customer number:
PASSWORD=Password:
BUTTON_CUSTOMER_LOGIN=Login to customer area
-LINK_HOME_TITLE=Eingangsseite
+LINK_HOME_TITLE=Home page
LINK_HOME=Home
LINK_BASKET=Basket
LINK_CLOSE_SESSION_TITLE=Close session
LINK_CUSTOMER_REGISTER=Registration
LINK_CUSTOMER_PASSWORD_TITLE=Create new password
LINK_CUSTOMER_PASSWORD=Lost password?
+LINK_TO_BASKET=To basket
+LINK_CONTINUE_SHOPPING=Continue shopping
+LINK_CONTINUE_SHOPPING_TITLE=Click to continue shopping.
+PAGE_TITLE_INDEX_SHOW_BASKET=Show basket
+SUB_TITLE_INDEX_SHOW_BASKET=Following items are in basket:
+GUEST_ITEM_TITLE=Item:
+BUTTON_CHANGE_ITEM_AMOUNT=Change
+PAGE_TITLE_INDEX_IMPRINT=Imprint
+SUB_TITLE_INDEX_IMPRINT=Imprint:
+PAGE_TITLE_INDEX_ITEM_ADDED=Item has been added to basket
+SUB_TITLE_INDEX_ITEM_ADDED=Item has been added to basket:
+GUEST_ITEM_ADDED_TO_BASKET=The item {0} has been added to the basket.
*/
package org.mxchange.pizzaapplication.beans.basket;
+import java.text.MessageFormat;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.enterprise.context.SessionScoped;
public String addItem (final Product product) {
// Generate item instance
AddableBasketItem item = new BasketItem(product, this.getAmount());
-
+
// Is amount set?
if (this.getAmount() == null) {
// No amount specified?!
return null;
}
-
+
try {
// item should not be null
if (null == item) {
// Abort here
throw new NullPointerException("item is null"); //NOI18N
}
-
+
// Deligate to model
this.basket.addItem(item);
-
+
// Remove amount
this.setAmount(null);
-
+
// Added
return "item_added"; //NOI18N
} catch (final BasketItemAlreadyAddedException ex) {
return isAdded;
}
+ @Override
+ public String outputLastAddedItem () {
+ // Default message
+ String lastItem = ""; //NOI18N
+
+ // Get instance
+ AddableBasketItem item = this.getLast();
+
+ // Is it set?
+ if (item instanceof AddableBasketItem) {
+ // Get type
+ switch (item.getItemType()) {
+ case "product": // Sellable product //NOI18N
+ assert(item.getProduct() instanceof Product) : MessageFormat.format("item {0} has no product instance set.", item); //NOI18N
+
+ // Get title
+ lastItem = item.getProduct().getTitle();
+ break;
+
+ default: // Not supported
+ throw new FacesException(MessageFormat.format("item type {0} is not supported.", item.getItemType())); //NOI18N
+ }
+ }
+
+ // Return it
+ return lastItem;
+ }
+
/**
* Getter for basket bean instance
*
* @return Page redirection
*/
public String changeItem (final AddableBasketItem item);
+
+ /**
+ * Outputs last added item in the basket.
+ *
+ * @return Last added item
+ */
+ public String outputLastAddedItem();
}
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?xml version="1.0" encoding="UTF-8" ?>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
</div>
</div>
+ <!--
+ Mini basket on left side
+ //-->
+ <div id="mini_basket">
+ <ui:insert name="basket" />
+ </div>
+
<div id="menu_content">
<div id="left">
<ui:insert name="menu">Default menu</ui:insert>
<div id="content_header">
<ui:insert name="content_header">Default content header</ui:insert>
</div>
+
<div id="content">
<ui:insert name="content">Default content</ui:insert>
</div>
+<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
<div class="mini_basket_box">
<div class="mini_basket_header">
- #{msg.mini_basketController.header}
+ #{msg.MINI_BASKET_TITLE}
</div>
<div class="mini_basket_last">
- #{msg.mini_basketController.last_item}
+ <h:outputFormat value="#{msg.MINI_BASKET_LAST_ITEM}">
+ <f:param value="#{basketController.outputLastAddedItem()}" />
+ </h:outputFormat>
</div>
<div class="mini_basket_more">
- #{msg.mini_basketController.additional_items}
+ <h:outputFormat value="#{msg.MINI_BASKET_ADDITIONAL_ITEMS}">
+ <f:param value="#{basketController.lastNumRows}" />
+ </h:outputFormat>
</div>
<div class="mini_basket_link">
- <h:link id="to_basket" outcome="basket" title="#{msg.mini_basketController.to_basket}" value="#{msg.mini_basketController.to_basket}" />
+ <h:link id="to_basket" outcome="basket" title="#{msg.LINK_TO_BASKET_TITLE}" value="#{msg.LINK_TO_BASKET}" />
</div>
</div>
</ui:composition>
+<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<div class="mini_basket_box">
- #{MiniBasketTag.basket_is_empty}
+ <div class="mini_basket_header">
+ #{msg.MINI_BASKET_TITLE}
+ </div>
+
+ <div class="mini_basket_last">
+ #{msg.MINI_BASKET_IS_EMPTY}
+ </div>
+
+ <div class="mini_basket_link">
+ <h:link id="to_index" outcome="index" title="#{msg.LINK_CONTINUE_SHOPPING_TITLE}" value="#{msg.LINK_CONTINUE_SHOPPING}" />
+ </div>
</div>
</ui:composition>
+<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
+<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
template="/WEB-INF/templates/base.tpl"
xmlns="http://www.w3.org/1999/xhtml"
<ui:define name="title"><ui:insert name="guest_title" class="guest_title" /></ui:define>
<!--
- Show basket if it contains items, else show an empty basketController.
+ Show basket if it contains items, else show an empty basket.
//-->
- <ui:fragment rendered="#{basketController.isEmpty()}">
- <ui:include src="/WEB-INF/templates/basket/mini_basket_empty.tpl" />
- </ui:fragment>
- <ui:fragment rendered="#{basketController.hasItems()}">
- <ui:include src="/WEB-INF/templates/basket/mini_basketController.tpl" />
- </ui:fragment>
+ <ui:define name="basket">
+ <ui:fragment rendered="#{basketController.isEmpty()}">
+ <!-- Empty basket //-->
+ <ui:include src="/WEB-INF/templates/basket/mini_basket_empty.tpl" />
+ </ui:fragment>
+
+ <ui:fragment rendered="#{basketController.hasItems()}">
+ <!-- At least one item is there //-->
+ <ui:include src="/WEB-INF/templates/basket/mini_basket.tpl" />
+ </ui:fragment>
+ </ui:define>
</ui:composition>
+<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
+<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
+<?xml version="1.0" encoding="UTF-8" ?>
<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
- <div class="menu">
- <div class="menu_header">
- #{msg.MENU_HOME_TITLE}
- </div>
+ <div class="menu_outer">
+ <div class="menu">
+ <div class="menu_header">
+ #{msg.MENU_HOME_TITLE}
+ </div>
- <ul>
- <li><h:link title="#{msg.LINK_HOME_TITLE}" outcome="index" value="#{msg.LINK_HOME}" /></li>
- <li><h:link title="#{msg.LINK_TO_BASKET_TITLE}" outcome="basket" value="#{msg.LINK_BASKET}" /></li>
- <li><h:link title="#{msg.LINK_CLOSE_SESSION_TITLE}" outcome="logout" value="#{msg.LINK_CLOSE_SESSION}" /></li>
- </ul>
+ <ul>
+ <li><h:link title="#{msg.LINK_HOME_TITLE}" outcome="index" value="#{msg.LINK_HOME}" /></li>
+ <li><h:link title="#{msg.LINK_TO_BASKET_TITLE}" outcome="basket" value="#{msg.LINK_BASKET}" /></li>
+ <li><h:link title="#{msg.LINK_CLOSE_SESSION_TITLE}" outcome="logout" value="#{msg.LINK_CLOSE_SESSION}" /></li>
+ </ul>
- <div class="menu_header">
- #{msg.MENU_CUSTOMER_TITLE}
- </div>
+ <div class="menu_header">
+ #{msg.MENU_CUSTOMER_TITLE}
+ </div>
- <ul>
- <li><h:link title="#{msg.LINK_CUSTOMER_LOGIN_TITLE}" outcome="customer_login" value="#{msg.LINK_CUSTOMER_LOGIN}" /></li>
- <li><h:link title="#{msg.LINK_CUSTOMER_REGISTER_TITLE}" outcome="customer_register" value="#{msg.LINK_CUSTOMER_REGISTER}" /></li>
- <li><h:link title="#{msg.LINK_CUSTOMER_PASSWORD_TITLE}" outcome="customer_lost_passwd" value="#{msg.LINK_CUSTOMER_PASSWORD}" /></li>
- </ul>
+ <ul>
+ <li><h:link title="#{msg.LINK_CUSTOMER_LOGIN_TITLE}" outcome="customer_login" value="#{msg.LINK_CUSTOMER_LOGIN}" /></li>
+ <li><h:link title="#{msg.LINK_CUSTOMER_REGISTER_TITLE}" outcome="customer_register" value="#{msg.LINK_CUSTOMER_REGISTER}" /></li>
+ <li><h:link title="#{msg.LINK_CUSTOMER_PASSWORD_TITLE}" outcome="customer_lost_passwd" value="#{msg.LINK_CUSTOMER_PASSWORD}" /></li>
+ </ul>
+ </div>
</div>
</ui:composition>
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<div class="table_footer">
<h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
<h:commandButton class="submit" type="submit" id="edit" action="#{admin_category.editCategory(cat)}" value="#{msg.BUTTON_EDIT_ENTRIES}" />
- <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteCategory(cat)}" value="#{msg.BUTTON_DELETE_ENTRIES}" />
+ <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteCategory(cat)}" value="#{msg.BUTTON_ADMIN_DELETE_ENTRIES}" />
</div>
</h:form>
</div>
<div class="table_footer">
<h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton class="submit" type="submit" action="#{admin_category.addCategory()}" value="#{msg.BUTTON_ADD_CATEGORY}" />
+ <h:commandButton class="submit" type="submit" action="#{admin_category.addCategory()}" value="#{msg.BUTTON_ADMIN_ADD_CATEGORY}" />
</div>
</div>
</h:form>
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<div class="table_footer">
<h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
<h:commandButton class="submit" type="submit" id="edit" action="#{admin_product.editProduct(product)}" value="#{msg.BUTTON_EDIT_ENTRIES}" />
- <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteProduct(product)}" value="#{msg.BUTTON_DELETE_ENTRIES}" />
+ <h:commandButton class="delete" type="submit" id="delete" action="#{admin_category.deleteProduct(product)}" value="#{msg.BUTTON_ADMIN_DELETE_ENTRIES}" />
</div>
</h:form>
</div>
<div class="table_footer">
<h:commandButton class="reset" type="reset" value="#{msg.BUTTON_RESET_FORM}" />
- <h:commandButton class="submit" type="submit" id="add" action="#{admin_product.addProduct()}" value="#{msg.BUTTON_ADD_PRODUCT}" />
+ <h:commandButton class="submit" type="submit" id="add" action="#{admin_product.addProduct()}" value="#{msg.BUTTON_ADMIN_ADD_PRODUCT}" />
</div>
</div>
</h:form>
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
>
<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
- <ui:define name="guest_title">Warenkorb anzeigen</ui:define>
+ <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_SHOW_BASKET}</ui:define>
<ui:define name="menu">
<ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
</ui:define>
<ui:define name="content_header">
- Alle im Warenkorb befindlichen Artikel:
+ #{msg.SUB_TITLE_INDEX_SHOW_BASKET}
</ui:define>
<ui:define name="content">
<h:dataTable var="item" value="#{basketController.allItems()}" headerClass="table_header_column" class="table" rendered="#{basketController.hasItems()}">
<h:column>
- <f:facet name="header">Artikel:</f:facet>
+ <f:facet name="header">#{msg.GUEST_ITEM_TITLE}</f:facet>
<ui:fragment rendered="#{item.isProductType()}">
#{item.product.title}
<f:facet name="header">#{msg.CHANGE_ITEM_AMOUNT}</f:facet>
<h:form acceptcharset="utf-8" id="add_item">
- <h:commandButton class="submit" id="add" value="Ändern" action="#{basketController.changeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
+ <h:commandButton class="submit" id="add" value="#{msg.BUTTON_CHANGE_ITEM_AMOUNT}" action="#{basketController.changeItem(item)}" title="#{msg.BUTTON_TITLE_CHANGE_ITEM_AMOUNT}" />
<h:inputText class="input" id="amount" size="3" maxlength="20" value="#{item.amount}" title="#{msg.INPUT_TITLE_ENTER_ITEM_AMOUNT}">
<!--
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
>
<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
- <ui:define name="title">Impressum</ui:define>
+ <ui:define name="title">#{msg.PAGE_TITLE_INDEX_IMPRINT}</ui:define>
<ui:define name="menu">
<ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
</ui:define>
<ui:define name="content_header">
- Impressum
+ #{msg.SUB_TITLE_INDEX_IMPRINT}
</ui:define>
<ui:define name="content">
- Hier kommt das Impressum hin!
+ TODO: Hier kommt das Impressum hin!
</ui:define>
<ui:define name="footer">
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
>
<ui:composition template="/WEB-INF/templates/guest/guest_base.tpl">
- <ui:define name="guest_title">Produkt zum Warenkorb hinzugefügt</ui:define>
+ <ui:define name="guest_title">#{msg.PAGE_TITLE_INDEX_ITEM_ADDED}</ui:define>
<ui:define name="menu">
<ui:include id="menu" class="guest_menu" src="/WEB-INF/templates/guest/guest_menu.tpl" />
</ui:define>
<ui:define name="content_header">
- Produkt zum Warenkorb hinzugefügt
+ #{msg.SUB_TITLE_INDEX_ITEM_ADDED}
</ui:define>
<ui:define name="content">
- Das Produkt wurde zum Warenkorb hinzugefügt.
+ <h:outputFormat value="#{msg.GUEST_ITEM_ADDED_TO_BASKET}">
+ <f:param value="#{basketController.outputLastAddedItem()}" />
+ </h:outputFormat>
</ui:define>
<ui:define name="footer">
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"