1: <%--
2: Document : index
3: Created on : Jan 2, 2010, 5:37:03 PM
4: Author : Ondrej Macoszek <macosond@fel.cvut.cz>
5: --%>
6: <%@page contentType="text/html" pageEncoding="UTF-8"%>
7:
8: <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
9: <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
10: <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
11:
12: <f:view locale="#{localeBack.currentLocale}">
13: <jsp:include page="/common/header.jsp" />
14:
15:
16: <h2><h:outputText value="#{title.eventList}" /></h2>
17:
18: <h:form>
19: <c:choose>
20: <c:when test="${eventBack.eventListModel.rowCount > 0}" >
21: <h:dataTable value="#{eventBack.eventListModel}" var="event">
22: <h:column>
23: <f:facet name="header">
24: <h:outputText value="#{msg.name}" />
25: </f:facet>
26: <h:outputText value="#{event.name}" />
27: </h:column>
28: <h:column>
29: <f:facet name="header">
30: <h:outputText value="#{msg.dateStart}" />
31: </f:facet>
32: <h:outputText value="#{event.dateStart}">
33: <f:convertDateTime pattern="dd.MM.yyyy HH:mm" />
34: </h:outputText>
35: </h:column>
36: <h:column>
37: <f:facet name="header">
38: <h:outputText value="#{msg.dateEnd}" />
39: </f:facet>
40: <h:outputText value="#{event.dateEnd}">
41: <f:convertDateTime pattern="dd.MM.yyyy HH:mm" />
42: </h:outputText>
43: </h:column>
44: <h:column>
45: <f:facet name="header">
46: <h:outputText value="#{msg.place}" />
47: </f:facet>
48: <h:outputText value="#{event.place}" />
49: </h:column>
50:
51: <h:column>
52: <f:facet name="header">
53: <h:outputText value="#{msg.band}" />
54: </f:facet>
55: <h:outputText value="#{event.band.name}" />
56: </h:column>
57: </h:dataTable>
58: </c:when>
59: <c:otherwise>
60: <p><h:outputText value="#{msg.noResults}" /></p>
61: </c:otherwise>
62: </c:choose>
63: </h:form>
64:
65:
66: <jsp:include page="/common/footer.jsp" />
67: </f:view>