nyilmaz / jsf-spring-boot-starter

JSF Spring Boot Starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSF Spring Boot Starter

Maven Central Build Status Dependency Status License

This spring boot starter enables JSF usage inside JAR packaged Spring Boot Application.

It autoconfigures Primefaces, Omnifaces, Mojarra and Myfaces libraries to run at embedded Tomcat.

How to use

Jsf Spring Boot Starter Example shows jsf spring boot starter usage.

Key Features

  • Includes primefaces, primefaces-extensions, primefaces-all-themes, omnifaces, mojarra and cdi-api dependency libraries. Note that myfaces is optional and should not be used with mojarra if you prefer myfaces.
Library Dependency
primefaces 5.3
primefaces-extensions 4.0.0
primefaces-all-themes 1.0.8
omnifaces 1.13
mojarra 2.2.13
myfaces 2.2.10
cdi-api 1.2
  • Enable jsf properties configuration via application.properties or application.yml according discussion in #22
Library Namespace Example
standard (javax.faces) jsf jsf.PROJECT_STAGE=Development
primefaces jsf.primefaces jsf.primefaces.theme=overcast
omnifaces jsf.omnifaces jsf.omnifaces.FACES_VIEWS_ENABLED=true
mojarra (com.sun.faces) jsf.mojarra jsf.mojarra.preferXHTML=true
myfaces (org.apache.myfaces) jsf.myfaces jsf.myfaces.PRETTY_HTML=true
  • Includes spring-boot-starter-web, tomcat-embed-jasper, jstl and commons-digester dependencies transitively.

  • Enable CDI annotations usage, including View scope implementation. Examples: @ViewScoped, @SessionScoped.

About

JSF Spring Boot Starter


Languages

Language:Java 100.0%