Kontakt

Fakturační údaje

IČ: 87189224, BÚ: 1958653063/0800

Contact info in QR code

Musico

Informace

  • Webová aplikace vytvořená pomocí technologií EJB a JSF, s úmyslem nasazení na Glassfish serveru.
  • Psaná jako semestrální práce pro předmět X33EJA.
  • Účelem bylo osvojit si:
    • Návrh doménového modelu a jeho implementaci (alespoň jedna vazba M:N)
    • Použití JPA pro persistenci
    • Transakce
    • Použití EJB (stateless i statefull)
    • Lokalizaci do více jazyků
    • Autorizaci uživatelů, rozdělení do rolí a zabezpečení přístupu k business vrstvě
    • Webové rozhrání (servlety, jsp, nebo web framework)

Zdrojové kódy

 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>