jsf-spring-integration - mavenizing
(cherry picked from commit eba201c)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user