Class FacesServletAutoConfiguration

java.lang.Object
org.joinfaces.autoconfigure.faces.FacesServletAutoConfiguration

@AutoConfiguration(after=JakartaFaces3AutoConfiguration.class) @ConditionalOnClass(jakarta.faces.webapp.FacesServlet.class) @ConditionalOnWebApplication(type=SERVLET) @EnableConfigurationProperties(FacesServletProperties.class) public class FacesServletAutoConfiguration extends Object
  • Constructor Details

    • FacesServletAutoConfiguration

      public FacesServletAutoConfiguration()
  • Method Details

    • facesServletRegistrationBean

      @Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<jakarta.faces.webapp.FacesServlet> facesServletRegistrationBean(FacesServletProperties facesServletProperties)
      This bean registers the FacesServlet.

      This ServletRegistrationBean also sets two servlet-context attributes to inform Mojarra and MyFaces about the dynamically added Servlet.

      Parameters:
      facesServletProperties - The properties for the FacesServlet-registration.
      Returns:
      A custom ServletRegistrationBean which registers the FacesServlet.