- text needs to be wrapped in h:outputText, here too.
- no need for mini_basket_empty.tpl, there is a generic message_box.tpl
Signed-off-by: Roland Häder <roland@mxchange.org>
<h:dataTable id="table_show_full_basket" var="item" value="#{basketController.allItems()}" styleClass="table" headerClass="table_header_column" summary="#{msg.TABLE_SUMMARY_FULL_BASKET}" rendered="#{basketController.hasItems()}">
<h:column>
- <f:facet name="header">#{msg.GUEST_ITEM_TITLE}</f:facet>
+ <f:facet name="header">
+ <h:outputText value="#{msg.GUEST_ITEM_TITLE}" />
+ </f:facet>
<ui:fragment rendered="#{item.isProductType()}">
- #{item.itemProduct.productTitle}
+ <h:outputText value="#{item.itemProduct.productTitle}" />
</ui:fragment>
</h:column>
<h:column>
- <f:facet name="header">#{msg.SINGLE_PRODUCT_PRICE}</f:facet>
+ <f:facet name="header">
+ <h:outputText value="#{msg.SINGLE_PRODUCT_PRICE}" />
+ </f:facet>
<div class="item_price">
<ui:fragment rendered="#{item.isProductType()}">
</h:column>
<h:column>
- <f:facet name="header">#{msg.CHANGE_ITEM_AMOUNT}</f:facet>
+ <f:facet name="header">
+ <h:outputText value="#{msg.CHANGE_ITEM_AMOUNT}" />
+ </f:facet>
<h:form id="add_item">
<h:outputText id="amount" value="#{item.orderedAmount}">
</h:column>
<h:column>
- <f:facet name="header">#{msg.TOTAL_ITEM_PRICE}</f:facet>
+ <f:facet name="header">
+ <h:outputText value="#{msg.TOTAL_ITEM_PRICE}" />
+ </f:facet>
<div class="item_total_price">
<h:outputText styleClass="price" id="item_price" value="#{basketController.calculateItemPrice(item)}" rendered="#{item.isProductType()}">
<div class="mini_basket_box">
<div class="mini_basket_header">
- #{msg.MINI_BASKET_TITLE}
+ <h:outputText value="#{msg.MINI_BASKET_TITLE}" />
</div>
<div class="mini_basket_last">
+++ /dev/null
-<?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://xmlns.jcp.org/jsf/facelets">
-
- <div class="mini_basket_box">
- <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>
<ui:fragment rendered="#{basketController.hasItems()}">
<div class="totals_container">
- #{msg.TOTAL_ORDER_PRICE}
+ <h:outputText value="#{msg.TOTAL_ORDER_PRICE}" />
+
<h:outputText styleClass="price" id="total_sum" value="#{basketController.calculateTotalPrice()}">
<f:convertNumber type="currency" minFractionDigits="2" maxFractionDigits="2" locale="de_DE" />
</h:outputText>
<ui:define name="basket">
<ui:fragment rendered="#{basketController.isEmpty()}">
<!-- Empty basket //-->
+ <ui:include src="/WEB-INF/templates/generic/message_box_mini.tpl">
+ <ui:param name="message" value="#{msg.MINI_BASKET_IS_EMPTY}" />
+ </ui:include>
<ui:include src="/WEB-INF/templates/basket/mini_basket_empty.tpl" />
</ui:fragment>