<?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:h="http://xmlns.jcp.org/jsf/html">
<h:body>
<h:form>
Müşteri <br/><br/>
Müşteri Adı <h:inputText value="#{shoppingBean.cart.customerName}"/> <br/>
Müşteri Adresi <h:inputTextarea value="#{shoppingBean.cart.customerName}"/> <br/>
<br/>
Sepet : <br/>
<h:dataTable value="#{shoppingBean.cart.cartLineList}" var="cartLine">
<h:column>
<h:outputText value="#{cartLine.product.productName}"/>
: <h:outputText value="#{cartLine.salesQuantity}"/>
</h:column>
</h:dataTable>
<br/>
Ürünler : <br/>
<h:dataTable value="#{shoppingBean.productList}" var="product">
<h:column>
<h:outputText value="#{product.productName}"/>
( <h:outputText value="#{product.salesPrice}"/> )
</h:column>
<h:column>
<h:commandLink action="#{shoppingBean.add(product.productId)}"
value="Ekle"/>
</h:column>
<h:column>
<h:commandLink action="#{shoppingBean.remove(product.productId)}"
value="Çıkar"/>
</h:column>
</h:dataTable>
<br/>
<h:commandButton action="#{shoppingBean.checkout}"
value="Tamamla"/>
<h:messages/>
</h:form>
</h:body>
</html>
Dosyayı İndir