Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
indent_size = 2
continuation_indent_size = 2

[*.yml]
indent_style = space
indent_size = 2
end_of_line = lf

[package.json]
indent_style = space
indent_size = 2
end_of_line = lf
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
.idea
spring-boot-primefaces-template.iml
*.iml
target/
build/
.gradle/
*.log
out/
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
# spring-boot-primefaces-template
Simple example application for **Primefaces (6.0)** running on **Spring-boot 2**

Simple template application for <b>Primefaces (5.2)</b> on <b>Spring-boot (1.2.3).</b></br>
Also configured fileupload and provided one page with this functionality.
* File Upload
* Realtime Database Insertion

### Running It

```bash
$ ./gradlew bootRun
...
Tomcat initialized with port(s): 9091 (http)
```
Then access contact list page: http://localhost:9091/view/contact-list.xhtml
55 changes: 55 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
plugins {
id 'org.springframework.boot' version '2.1.3.RELEASE'
id 'java'
}

repositories {
mavenLocal()
mavenCentral()
maven { url = 'http://repository.primefaces.org' }
}

sourceCompatibility = JavaVersion.VERSION_11

configurations {
provided
}

sourceSets {
main {
compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
}

allprojects {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}

dependencies {

compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: springBootVersion
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: springBootVersion
compile group: "org.apache.tomcat.embed", name: "tomcat-embed-jasper", version: '9.0.16'
compile group: 'jstl', name: 'jstl', version: jstlVersion

// JSF
compile group: 'com.sun.faces', name: 'jsf-api', version: jsfVersion
compile group: 'com.sun.faces', name: 'jsf-impl', version: jsfVersion

compile group: 'org.primefaces', name: 'primefaces', version: primefacesVersion
compile group: 'org.primefaces.themes', name: 'bootstrap', version: '1.0.8'
compile group: 'net.bootsfaces', name: 'bootsfaces', version: '0.7.0'

// commons
compile group: 'commons-io', name: 'commons-io', version: '2.4'
compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.1'

testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: springBootVersion
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.24.0'

}
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jsfVersion=2.2.12
jstlVersion=1.2
primefacesVersion=6.0
springBootVersion=2.1.3.RELEASE
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Fri Aug 12 23:38:47 BRT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
164 changes: 164 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading