|
|
|
@ -3,6 +3,8 @@ package com.mousetech.gourmetj; |
|
|
|
|
import javax.servlet.ServletContext; |
|
|
|
|
import javax.servlet.ServletException; |
|
|
|
|
|
|
|
|
|
import org.primefaces.application.resource.PrimeResourceHandler; |
|
|
|
|
import org.primefaces.renderkit.HeadRenderer; |
|
|
|
|
import org.springframework.boot.SpringApplication; |
|
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScan; |
|
|
|
@ -31,8 +33,11 @@ public class SpringPrimeFacesApplication { |
|
|
|
|
@Override |
|
|
|
|
public void onStartup(ServletContext servletContext) |
|
|
|
|
throws ServletException { |
|
|
|
|
servletContext.setInitParameter( |
|
|
|
|
"primefaces.THEME", "afternoon"); |
|
|
|
|
/* Note that we cannot set theme here since it was |
|
|
|
|
* already set earlier. Default value is "aristo". |
|
|
|
|
*/ |
|
|
|
|
// servletContext.setInitParameter(
|
|
|
|
|
// "primefaces.THEME", "bluesky");
|
|
|
|
|
servletContext.setInitParameter( |
|
|
|
|
"javax.faces.FACELETS_SKIP_COMMENTS", |
|
|
|
|
"true"); |
|
|
|
|