<%@ 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 uri="http://www.jenia.org/jsf/dataTools" prefix="jdt" %>

<html>
<%@include file="/paginas/comum/head.jsp" %>
<body onLoad="limpaCheck();">
<body>
<f:view>
<%@include file="/paginas/comum/cabecalho.jsp" %>



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

<h:form id="formSelecionarBebida">


<br/>
<h:outputText value="Bebidas"/>
<br/>
<br/>

<t:dataTable id="tabelaDeBebidas"
var="bebida" value="#{bebidasControlador.bebidas}">
	<h:column > 
	
		<jdt:multipleRowsSelector selectionList="#{pedidoControlador.bebidasSelecionadas}" onclick="somaValorBebidas(#{bebida.valor}, this)" />
			<h:outputText value="#{bebida.nome} "/>
			<h:outputText value="#{bebida.valor}">
				<f:convertNumber maxFractionDigits="2" groupingUsed="true" maxIntegerDigits="14" type="currency" currencySymbol="R$" />
			</h:outputText>

	</h:column>
	
	
			
</t:dataTable>
<br/>
<h:commandButton id="enviarBebidaSelecionada" value="Efetuar o pedido"
			action="#{pedidoControlador.validaBebidas}" />
</h:form>
</f:view>
<%@include file="/paginas/comum/rodape.jsp" %>
</body>
</html>