diff --git a/jsf/pom.xml b/jsf/pom.xml
index 7b15cf9336..6f43e08535 100644
--- a/jsf/pom.xml
+++ b/jsf/pom.xml
@@ -13,12 +13,39 @@
0.1-SNAPSHOT
war
-
com.sun.faces
- mojarra-jsf-impl
- 2.0.0-b04
+ jsf-api
+ ${com.sun.faces.version}
+
+ com.sun.faces
+ jsf-impl
+ ${com.sun.faces.version}
+
+
+
+
+ org.springframework
+ spring-web
+ ${org.springframework.version}
+
+
+ org.springframework
+ spring-webmvc
+ ${org.springframework.version}
+
+
+ org.springframework
+ spring-websocket
+ ${org.springframework.version}
+
+
+ org.springframework
+ spring-messaging
+ ${org.springframework.version}
+
+
@@ -34,4 +61,9 @@
+
+
+ 4.2.5.RELEASE
+ 2.1.7
+
\ No newline at end of file
diff --git a/jsf/src/main/java/com/baeldung/springintegration/dao/UserManagementDAOImpl.java b/jsf/src/main/java/com/baeldung/springintegration/dao/UserManagementDAOImpl.java
index 6bdcb57cfa..b27aa582e3 100644
--- a/jsf/src/main/java/com/baeldung/springintegration/dao/UserManagementDAOImpl.java
+++ b/jsf/src/main/java/com/baeldung/springintegration/dao/UserManagementDAOImpl.java
@@ -1,7 +1,3 @@
-/*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
package com.baeldung.springintegration.dao;
import java.util.ArrayList;
@@ -10,16 +6,13 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
-/**
- * @author Tayo
- */
public class UserManagementDAOImpl extends IUserManagementDAO {
private List users;
@PostConstruct
public void initUserList() {
- users = new ArrayList();
+ users = new ArrayList<>();
}
@Override
diff --git a/jsf/src/main/java/com/baeldung/springintegration/resources/constraints.properties b/jsf/src/main/resources/constraints.properties
similarity index 100%
rename from jsf/src/main/java/com/baeldung/springintegration/resources/constraints.properties
rename to jsf/src/main/resources/constraints.properties
diff --git a/jsf/src/main/java/com/baeldung/springintegration/resources/messages.properties b/jsf/src/main/resources/messages.properties
similarity index 100%
rename from jsf/src/main/java/com/baeldung/springintegration/resources/messages.properties
rename to jsf/src/main/resources/messages.properties
diff --git a/jsf/src/main/webapp/WEB-INF/applicationContext.xml b/jsf/src/main/webapp/WEB-INF/applicationContext.xml
index 8553300e1e..385a0b8680 100644
--- a/jsf/src/main/webapp/WEB-INF/applicationContext.xml
+++ b/jsf/src/main/webapp/WEB-INF/applicationContext.xml
@@ -10,6 +10,6 @@
">
-
+
diff --git a/jsf/src/main/webapp/WEB-INF/faces-config.xml b/jsf/src/main/webapp/WEB-INF/faces-config.xml
index 6142d81daf..69baa5b05a 100644
--- a/jsf/src/main/webapp/WEB-INF/faces-config.xml
+++ b/jsf/src/main/webapp/WEB-INF/faces-config.xml
@@ -10,7 +10,7 @@
- com.baeldung.resources.messages
+ messages
msg
@@ -18,7 +18,7 @@
- com.baeldung.resources.constraints
+ constraints
constraints
diff --git a/jsf/src/main/webapp/index.xhtml b/jsf/src/main/webapp/index.xhtml
index d71451abcc..3fc91ea376 100644
--- a/jsf/src/main/webapp/index.xhtml
+++ b/jsf/src/main/webapp/index.xhtml
@@ -1,27 +1,28 @@
-
+
-
- Baeldung | Register
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ Baeldung | Register
+
+
+
+
+
+
+
+
+
+
+
+
+
+