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:
11: <f:view locale="#{localeBack.currentLocale}">
12: <jsp:include page="header.jsp" />
13:
14: <h2><h:outputText value="#{title.bandAdd}" /></h2>
15:
16: <h:form title="#{title.bandAdd}">
17: <h:panelGrid columns="2">
18: <h:outputText value="#{msg.name}" />
19: <h:panelGroup>
20: <h:inputText id="name" value="#{bandBack.band.name}" required="true" requiredMessage="#{error.fillName}" />
21: </h:panelGroup>
22: <h:outputText value="#{msg.website}" />
23: <h:inputText value="#{bandBack.band.website}" />
24:
25: <h:outputText value="#{msg.country}" />
26: <h:inputText value="#{bandBack.band.country}" />
27:
28: <h:panelGroup>
29: <h:outputText value="#{msg.dateFoundation}" />
30: <p class="hint"><h:outputText value="#{msg.dateExample}"/></p>
31: </h:panelGroup>
32: <h:inputText id="dateFoundation" value="#{bandBack.band.dateFoundation}">
33: <f:convertDateTime pattern="dd.MM.yyyy" />
34: </h:inputText>
35:
36: <h:outputText value="#{msg.preferredGenre}" />
37: <h:selectOneMenu id="preferredGenre" value="#{bandBack.band.preferredGenre}" converter="genreConverter">
38: <f:selectItems value="#{genreBack.genreListSelectItemModel}" />
39: </h:selectOneMenu>
40:
41: <h:outputText value="#{msg.musicians}" />
42: <h:selectManyMenu id="musicians" value="#{bandBack.band.musicians}" converter="musicianConverter" styleClass="dropdown">
43: <f:selectItems value="#{musicianBack.musicianListSelectItemModel}" />
44: </h:selectManyMenu>
45:
46: <h:panelGroup />
47: <h:panelGroup>
48: <h:commandButton value="#{title.bandAdd}" action="#{bandBack.add}" />
49: <h:commandButton value="#{msg.cancel}" action="list" immediate="true" />
50: </h:panelGroup>
51: </h:panelGrid>
52: <h:messages styleClass="error" />
53: </h:form>
54:
55: <jsp:include page="/common/footer.jsp" />
56: </f:view>