Skip to content

Commit fb43aa4

Browse files
committed
Polish
1 parent 0b432c2 commit fb43aa4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

booking-faces/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<artifactId>jsf-impl</artifactId>
6262
<version>${mojarra.version}</version>
6363
</dependency>
64-
<!-- JSF implementation: MyFaces
64+
<!-- JSF implementation: MyFaces (also change DispatcherServletInitializer)
6565
<dependency>
6666
<groupId>org.apache.myfaces.core</groupId>
6767
<artifactId>myfaces-api</artifactId>

booking-faces/src/main/java/org/springframework/webflow/samples/booking/config/DispatcherServletInitializer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
import javax.servlet.ServletContext;
55
import javax.servlet.ServletException;
66

7-
import com.sun.faces.config.ConfigureListener;
8-
97
import org.springframework.web.filter.CharacterEncodingFilter;
108
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
119

@@ -44,7 +42,8 @@ public void onStartup(ServletContext servletContext) throws ServletException {
4442
// Declare Spring Security Facelets tag library
4543
servletContext.setInitParameter("javax.faces.FACELETS_LIBRARIES", "/WEB-INF/springsecurity.taglib.xml");
4644

47-
servletContext.addListener(ConfigureListener.class);
45+
// Comment out if not using Mojarra
46+
servletContext.addListener(com.sun.faces.config.ConfigureListener.class);
4847

4948
// Let the DispatcherServlet be registered
5049
super.onStartup(servletContext);

0 commit comments

Comments
 (0)