<%@ taglib uri="http://java.sun.com/jsf/html" prefix=" h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<html>
<head>
<title>Metro Systems </title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<f:loadBundle basename="com.webforefront.resource.booking_messages"
var="booking_messages"/>
<f:view>
<h3> < h:outputText value="#{booking_messages['welcome']}"/> </h3>
< h:form>
<table align="center" cellpadding="5" cellspacing="5">
<tr>
<td>Email</td>
<td>< h:inputText id="email" value="#{flight.email}"/>
</td>
</tr>
<tr>
<td>< h:outputText id="departure"
value="#{booking_messages['date']}"/></td>
<td>
<t:inputCalendar monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader"
currentDayCellClass="currentDayCell"
value="#{flight.departure}" renderAsPopup="true"
popupTodayString="#{booking_messages['popup_today_string']}"
popupWeekString="#{booking_messages['popup_week_string']}"/>
</td>
</tr>
<tr>
<td>< h:outputText value="#{booking_messages['city']}"/> </td>
<td> < h:selectOneMenu value="#{flight.city}" required="true">
<f:selectItem itemLabel="Los Angeles"
itemValue="Los Angeles"/>
<f:selectItem itemLabel="Madrid"
itemValue="Madrid"/>
<f:selectItem itemLabel="Mexico City"
itemValue="Mexico City"/>
<f:selectItem itemLabel="New York"
itemValue="New York"/>
<f:selectItem itemLabel="Paris"
itemValue="Paris"/>
</h:selectOneMenu></td>
</tr>
</table>
< h:commandButton type="submit" value="#{booking_messages['reserve']}"
action="#{flight.reserve}"/>
< h:messages/>
</h:form>
</f:view>
</div>
</body>
</html>
Com base no código acima apresentado, julgue os itens a seguir.
A declaração <f:loadBundle> fornece capacidades internacionais (i18n) à aplicação. Nessa declaração, no código apresentado, Var é o nome de referência para atualizar os valores dos recursos.