Advertisement
Guest User

Untitled

a guest
Aug 1st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd">
  3. <context-param>
  4. <param-name>javax.faces.PROJECT_STAGE</param-name>
  5. <param-value>Development</param-value>
  6. </context-param>
  7. <servlet>
  8. <servlet-name>Faces Servlet</servlet-name>
  9. <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  10. <load-on-startup>1</load-on-startup>
  11. </servlet>
  12. <servlet-mapping>
  13. <servlet-name>Faces Servlet</servlet-name>
  14. <url-pattern>/faces/*</url-pattern>
  15. </servlet-mapping>
  16. <session-config>
  17. <session-timeout>
  18. 30
  19. </session-timeout>
  20. </session-config>
  21. <welcome-file-list>
  22. <welcome-file>faces/login.xhtml</welcome-file>
  23. </welcome-file-list>
  24.  
  25. <context-param>
  26. <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name>
  27. <param-value>true</param-value>
  28.  
  29. <?xml version="1.0" encoding="UTF-8"?>
  30. <project xmlns="http://maven.apache.org/POM/4.0.0"
  31. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  32. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  33. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  34. <modelVersion>4.0.0</modelVersion>
  35.  
  36. <groupId>sn.ucad.masterbi</groupId>
  37. <artifactId>GestionOuvrier</artifactId>
  38. <version>1.0</version>
  39. <dependencies>
  40. <dependency>
  41. <groupId>javax.servlet</groupId>
  42. <artifactId>javax.servlet-api</artifactId>
  43. <version>3.1.0</version>
  44. </dependency>
  45. <dependency>
  46. <groupId>dom4j</groupId>
  47. <artifactId>dom4j</artifactId>
  48. <version>1.6.1</version>
  49. <scope>provided</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.hibernate</groupId>
  53. <artifactId>hibernate-validator</artifactId>
  54. <version>4.2.0.Final</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.hibernate.common</groupId>
  58. <artifactId>hibernate-commons-annotations</artifactId>
  59. <version>4.0.1.Final</version>
  60. <classifier>tests</classifier>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.hibernate.javax.persistence</groupId>
  64. <artifactId>hibernate-jpa-2.0-api</artifactId>
  65. <version>1.0.1.Final</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.hibernate</groupId>
  69. <artifactId>hibernate-entitymanager</artifactId>
  70. <version>4.0.1.Final</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>mysql</groupId>
  74. <artifactId>mysql-connector-java</artifactId>
  75. <version>5.1.6</version>
  76. <scope>compile</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.sun.faces</groupId>
  80. <artifactId>jsf-api</artifactId>
  81. <version>2.2.12</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.sun.faces</groupId>
  85. <artifactId>jsf-impl</artifactId>
  86. <version>2.2.12</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>javax.faces</groupId>
  90. <artifactId>jsf-api</artifactId>
  91. <version>2.1</version>
  92. <scope>provided</scope>
  93. </dependency>
  94.  
  95. <dependency>
  96. <groupId>commons-io</groupId>
  97. <artifactId>commons-io</artifactId>
  98. <version>2.4</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>javax.servlet</groupId>
  102. <artifactId>jstl</artifactId>
  103. <version>1.1.2</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.hibernate</groupId>
  107. <artifactId>hibernate-core</artifactId>
  108. <version>5.1.0.Final</version>
  109. <scope>provided</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.hibernate</groupId>
  113. <artifactId>hibernate-ehcache</artifactId>
  114. <version>5.1.0.Final</version>
  115. <scope>provided</scope>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.primefaces</groupId>
  119. <artifactId>primefaces</artifactId>
  120. <version>6.0</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.primefaces.themes</groupId>
  124. <artifactId>all-themes</artifactId>
  125. <version>1.0.10</version>
  126. </dependency>
  127. </dependencies>
  128.  
  129. <repositories>
  130. <repository>
  131. <id>prime-repo</id>
  132. <name>PrimeFaces Maven Repository</name>
  133. <url>http://repository.primefaces.org</url>
  134. <layout>default</layout>
  135. </repository>
  136. </repositories>
  137. </project>
  138.  
  139. <html xmlns="http://www.w3.org/1999/xhtml"
  140. xmlns:h="http://java.sun.com/jsf/html"
  141. xmlns:f="http://java.sun.com/jsf/core"
  142. xmlns:p="http://primefaces.org/ui">
  143. <h:head>
  144. <title>Authentification</title>
  145. </h:head>
  146. <h:body>
  147. <h:form>
  148. <p:messages id="messages" />
  149. <p:panelGrid columns="2">
  150. <p:outputLabel for="nameUser" value="Name User:" />
  151. <p:inputText id="nameUser" value="#{loginManagedBean.user.login}" />
  152.  
  153. <p:outputLabel for="password" value="Password:" />
  154. <p:password id="password" value="#{loginManagedBean.user.password}" />
  155.  
  156. <p:commandButton value="Valider" icon="ui-icon-star" action="#{loginManagedBean.connexion}" ajax="false">
  157. </p:commandButton>
  158.  
  159. </p:panelGrid>
  160. </h:form>
  161. </h:body>
  162. </html>
  163.  
  164. Maven: org.primefaces:primefaces:6.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement