jsf-spring-integration - mavenizing

(cherry picked from commit eba201c)
This commit is contained in:
Slavisa Baeldung
2016-05-26 11:22:26 +02:00
parent ef53002000
commit 6e6f7c4e1e
7 changed files with 59 additions and 33 deletions
@@ -10,6 +10,6 @@
">
<bean class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor" />
<bean class="com.baeldung.dao.UserManagementDAOImpl" id="userManagementDAO"/>
<bean class="com.baeldung.springintegration.dao.UserManagementDAOImpl" id="userManagementDAO"/>
</beans>
+2 -2
View File
@@ -10,7 +10,7 @@
<application>
<resource-bundle>
<base-name>
com.baeldung.resources.messages
messages
</base-name>
<var>
msg
@@ -18,7 +18,7 @@
</resource-bundle>
<resource-bundle>
<base-name>
com.baeldung.resources.constraints
constraints
</base-name>
<var>
constraints
+20 -19
View File
@@ -1,27 +1,28 @@
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Baeldung | Register</title>
</h:head>
<h:body>
<h:form>
<f:ajax>
<h:panelGrid id="theGrid" columns="3">
<h:outputText value="Username"/>
<h:inputText id="firstName" binding="#{userNameTextbox}" required="true" requiredMessage="#{msg['message.valueRequired']}" value="#{registration.userName}"/>
<h:message for="firstName" />
<h:commandButton value="#{msg['label.saveButton']}" action="#{registration.theUserDao.createUser(userNameTextbox.value)}"/>
<h:outputText value="#{registration.operationMessage}"/>
</h:panelGrid>
</f:ajax>
</h:form>
</h:body>
<h:head>
<title>Baeldung | Register</title>
</h:head>
<h:body>
<h:form>
<f:ajax>
<h:panelGrid id="theGrid" columns="3">
<h:outputText value="Username"/>
<h:inputText id="firstName" binding="#{userNameTextbox}" required="true"
requiredMessage="#{msg['message.valueRequired']}" value="#{registration.userName}"/>
<h:message for="firstName"/>
<h:commandButton value="#{msg['label.saveButton']}"
action="#{registration.theUserDao.createUser(userNameTextbox.value)}"/>
<h:outputText value="#{registration.operationMessage}"/>
</h:panelGrid>
</f:ajax>
</h:form>
</h:body>
</html>