BAEL-20869 Move remaining spring boot modules
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faces-config xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
|
||||
version="2.2">
|
||||
<application>
|
||||
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
|
||||
</application>
|
||||
</faces-config>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
|
||||
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
|
||||
version="3.0">
|
||||
|
||||
<servlet>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>Faces Servlet</servlet-name>
|
||||
<url-pattern>*.jsf</url-pattern>
|
||||
</servlet-mapping>
|
||||
<context-param>
|
||||
<param-name>com.sun.faces.forceLoadConfiguration</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
</web-app>
|
||||
@@ -0,0 +1,20 @@
|
||||
<f:view xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:f="http://java.sun.com/jsf/core"
|
||||
xmlns:h="http://java.sun.com/jsf/html">
|
||||
<h:head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
<title>TO-DO application</title>
|
||||
</h:head>
|
||||
<h:body>
|
||||
<div>
|
||||
<p>Welcome in the TO-DO application!</p>
|
||||
<p style="height:50px">
|
||||
This is a static message rendered from xhtml.
|
||||
<h:form>
|
||||
<h:commandButton value="Load To-do page!" action="#{jsfController.loadTodoPage}" />
|
||||
</h:form>
|
||||
</p>
|
||||
</div>
|
||||
</h:body>
|
||||
</f:view>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
|
||||
$(function() {
|
||||
var node1 = document.createTextNode("message = " + message);
|
||||
var node2 = document.createTextNode("number = " + number);
|
||||
document.getElementById('message-async-jquery').append(node1);
|
||||
document.getElementById('number-async-jquery').append(node2);
|
||||
});
|
||||
@@ -0,0 +1,6 @@
|
||||
window.onload = function() {
|
||||
var node1 = document.createTextNode("message = " + message);
|
||||
var node2 = document.createTextNode("number = " + number);
|
||||
document.getElementById('message-async').append(node1);
|
||||
document.getElementById('number-async').append(node2);
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
var node1 = document.createTextNode("message = " + message);
|
||||
var node2 = document.createTextNode("number = " + number);
|
||||
document.getElementById('message-ext').append(node1);
|
||||
document.getElementById('number-ext').append(node2);
|
||||
@@ -0,0 +1,38 @@
|
||||
<f:view xmlns="http://www.w3c.org/1999/xhtml"
|
||||
xmlns:f="http://java.sun.com/jsf/core"
|
||||
xmlns:h="http://java.sun.com/jsf/html">
|
||||
<h:head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||
<title>TO-DO application</title>
|
||||
</h:head>
|
||||
<h:body>
|
||||
<div>
|
||||
<div>
|
||||
List of TO-DO items
|
||||
</div>
|
||||
<h:dataTable value="#{todoService.allTodo}" var="item">
|
||||
<h:column>
|
||||
<f:facet name="header"> Message</f:facet>
|
||||
#{item.message}
|
||||
</h:column>
|
||||
<h:column>
|
||||
<f:facet name="header"> Priority</f:facet>
|
||||
#{item.priority}
|
||||
</h:column>
|
||||
</h:dataTable>
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
Add new to-do item:
|
||||
</div>
|
||||
<h:form>
|
||||
<h:outputLabel for="message" value="Message: "/>
|
||||
<h:inputText id="message" value="#{todoService.todo.message}"/>
|
||||
<h:outputLabel for="priority" value="Priority: "/>
|
||||
<h:inputText id="priority" value="#{todoService.todo.priority}" converterMessage="Please enter digits only."/>
|
||||
<h:commandButton value="Save" action="#{todoService.save}"/>
|
||||
</h:form>
|
||||
</div>
|
||||
</h:body>
|
||||
</f:view>
|
||||
Reference in New Issue
Block a user