|
|
|
@ -4,8 +4,6 @@ import jakarta.faces.application.ViewExpiredException; |
|
|
|
|
import jakarta.servlet.ServletContext; |
|
|
|
|
import jakarta.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; |
|
|
|
@ -21,8 +19,6 @@ import org.springframework.http.HttpStatus; |
|
|
|
|
"com.mousetech.gourmetj.persistence.model" }) |
|
|
|
|
public class SpringPrimeFacesApplication { |
|
|
|
|
|
|
|
|
|
private static final String IMAGE_IIO_PROVIDER_CONTEXT_LISTENER = |
|
|
|
|
"com.twelvemonkeys.servlet.image.IIOProviderContextListener"; |
|
|
|
|
final String errorPage = "/error/error.html"; |
|
|
|
|
final String error404Page = "/error/error404.html"; |
|
|
|
|
final String expiredPage = "/error/viewExpired.xhtml"; |
|
|
|
@ -38,13 +34,6 @@ public class SpringPrimeFacesApplication { |
|
|
|
|
@Override |
|
|
|
|
public void onStartup(ServletContext servletContext) |
|
|
|
|
throws ServletException { |
|
|
|
|
/* Note that we cannot set theme here since it was |
|
|
|
|
* already set earlier. Default value is "aristo". |
|
|
|
|
*/ |
|
|
|
|
servletContext.setInitParameter( |
|
|
|
|
"joinfaces.primefaces.theme", "vela"); |
|
|
|
|
servletContext.setInitParameter( |
|
|
|
|
"primefaces.THEME", "overcast"); |
|
|
|
|
servletContext.setInitParameter( |
|
|
|
|
"jakarta.faces.FACELETS_SKIP_COMMENTS", |
|
|
|
|
"true"); |
|
|
|
@ -53,7 +42,6 @@ public class SpringPrimeFacesApplication { |
|
|
|
|
"com.sun.el.ExpressionFactoryImpl"); |
|
|
|
|
servletContext.setInitParameter( |
|
|
|
|
"primefaces.UPLOADER", "native"); |
|
|
|
|
//servletContext.addListener(IMAGE_IIO_PROVIDER_CONTEXT_LISTENER);
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|