<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
<%@ taglib prefix="jdt" uri="http://www.jenia.org/jsf/dataTools" %>

<html>
<%@include file="/paginas/comum/head.jsp" %>
<body>
<f:view>

<%@include file="/paginas/comum/cabecalho.jsp" %>

<f:verbatim>
<style type="text/css">
	.colunaIngredientes {
		width: 200px;
	}
</style>
</f:verbatim>

<h1>Monte sua Pizza</h1>

<h:form id="formMontarPizza">
	<h:commandButton id="montarPizza" value="Montar Pizza"
		action="#{montarPizzaControlador.adicionaPizzaAoPedido}"/>
	
	
	<t:dataTable id="list"
	     rows="40"
	     value="#{montarPizzaControlador.ingredientes}"
	     var="ingrediente">
	    <h:column>
	        <jdt:multipleRowsSelector id="listaIngredientes" selectionList="#{montarPizzaControlador.ingredientesSelecionados}" />
	    </h:column>
	    	
	    <h:column>
	       <h:outputText value="#{ingrediente.nome}"/>
	    </h:column>	
	
	</t:dataTable>
</h:form>

	
		
</f:view>
<%@include file="/paginas/comum/rodape.jsp" %>
</body>
</html>