---project-dir
|
--- src / main
| |
| --- java
| |
| --- resources
| | |
| | --- META-INF
| | persistence.xml
| | beans.xml
| --- webapp
| |
| --- WEB-INF
| | web.xml
| index.xhtml
pom.xml
Last active
February 11, 2018 19:18
-
-
Save ThomasStuetz/5d81ea7c6044ad7c8d9429f57196b766 to your computer and use it in GitHub Desktop.
JavaServer Faces / PrimeFaces Configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:h="http://xmlns.jcp.org/jsf/html" | |
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | |
xmlns:f="http://xmlns.jcp.org/jsf/core" | |
xmlns:p="http://primefaces.org/ui"> | |
<h:head> | |
<title>My Project</title> | |
</h:head> | |
<h:body> | |
<h1 class="ui-widget">Hello World!</h1> | |
</h:body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1"> | |
<persistence-unit name="myPU" transaction-type="JTA"> | |
<jta-data-source>java:jboss/datasources/DbDS</jta-data-source> | |
<properties> | |
<!-- | |
<property name="hibernate.show_sql" value="true"/> | |
<property name="hibernate.format_sql" value="true"/> | |
<property name="hibernate.transaction.flush_before_completion" value="true"/> | |
<property name="hibernate.dialect" value="org.hibernate.dialect.DerbyDialect"/> | |
--> | |
<property name="javax.persistence.schema-generation.database.action" value="drop-and-create"/> | |
<property name="javax.persistence.schema-generation.scripts.action" value="drop-and-create"/> | |
<property name="javax.persistence.schema-generation.scripts.create-target" value="sampleCreate.ddl"/> | |
<property name="javax.persistence.schema-generation.scripts.drop-target" value="sampleDrop.ddl"/> | |
<!-- | |
<property name="javax.persistence.sql-load-script-source" value="insert.sql"/> | |
--> | |
</properties> | |
</persistence-unit> | |
</persistence> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>at.htl</groupId> | |
<artifactId>myprojectname</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>war</packaging> | |
<dependencies> | |
<dependency> | |
<groupId>javax</groupId> | |
<artifactId>javaee-web-api</artifactId> | |
<version>8.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.primefaces</groupId> | |
<artifactId>primefaces</artifactId> | |
<version>6.1</version> | |
</dependency> | |
<dependency> | |
<groupId>org.primefaces.extensions</groupId> | |
<artifactId>all-themes</artifactId> | |
<version>1.0.8</version> | |
</dependency> | |
</dependencies> | |
<properties> | |
<maven.compiler.source>1.8</maven.compiler.source> | |
<maven.compiler.target>1.8</maven.compiler.target> | |
<failOnMissingWebXml>false</failOnMissingWebXml> | |
</properties> | |
<build> | |
<finalName>myprojectname</finalName> | |
</build> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<web-app 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" | |
version="3.1"> | |
<context-param> | |
<param-name>javax.faces.PROJECT_STAGE</param-name> | |
<param-value>Development</param-value> | |
</context-param> | |
<context-param> | |
<param-name>primefaces.THEME</param-name> | |
<param-value>cupertino</param-value> | |
</context-param> | |
<servlet> | |
<servlet-name>Faces Servlet</servlet-name> | |
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>Faces Servlet</servlet-name> | |
<url-pattern>*.xhtml</url-pattern> | |
</servlet-mapping> | |
<session-config> | |
<session-timeout>30</session-timeout> | |
</session-config> | |
<welcome-file-list> | |
<welcome-file>index.xhtml</welcome-file> | |
</welcome-file-list> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment