Skip to content

Commit

Permalink
Finalizing form demo
Browse files Browse the repository at this point in the history
  • Loading branch information
bcarey authored and bcarey committed Apr 4, 2017
1 parent 3cdc43b commit 47cbaf3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
@@ -1,9 +1,9 @@
# ajaxdemo
A demo showing AJAX functionality with Spring Boot
# validationdemo
A demo showing form field validation with Spring Boot and Thymeleaf

Just pull this project down in Eclipse, then build it. Once it's built, you can run it from the command line with:
java -jar ajaxdemo.jar
java -jar validationdemo.jar

Alternatively, you can run it within Eclipse by right-clicking on Application and selecting Run As... Java Application.

Once the application is launched, you can access it at http://localhost:8090/ajaxDemo
Once the application is launched, you can access it at http://localhost:8090/form
2 changes: 1 addition & 1 deletion pom.xml
@@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.careydevelopment</groupId>
<artifactId>ajaxdemo</artifactId>
<artifactId>validationdemo</artifactId>
<version>1.0</version>

<parent>
Expand Down
15 changes: 14 additions & 1 deletion src/main/resources/templates/formSuccess.html
Expand Up @@ -20,7 +20,20 @@
<div class="page-content-wrapper">
<div class="page-head" style="background-color:#eff3f8;padding-top:40px">
<div class="container">
<div class="row">
<div class="row" style="height:600px">
<div class="col-md-6 ">
<div class="portlet light">
<div class="portlet-title">
<div class="caption font-blue">
<i class="icon-like font-blue"></i>
<span class="caption-subject bold uppercase">Congratulations!</span>
</div>
</div>
<div class="portlet-body form">
<h3>You have successfully submitted the form!</h3>
</div>
</div>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/topmenuheader.html
Expand Up @@ -19,7 +19,7 @@
</a>
</li>
<li class="menu-dropdown classic-menu-dropdown">
<a th:href="@{/ajaxDemo}"> AJAX Demo
<a th:href="@{/form}"> Form Validation Demo
</a>
</li>
</ul>
Expand Down

0 comments on commit 47cbaf3

Please sign in to comment.