webflow ide enabled

general cleanup
This commit is contained in:
Keith Donald
2007-04-01 13:41:44 +00:00
parent 37d0e7f48f
commit 080dd70dc5
9 changed files with 94 additions and 61 deletions

View File

@@ -0,0 +1,5 @@
#Sun Apr 01 09:18:16 EDT 2007
eclipse.preferences.version=1
org.springframework.ide.eclipse.core.builders.enable.aopreferencemodelbuilder=true
org.springframework.ide.eclipse.core.builders.enable.beansvalidator=true
org.springframework.ide.eclipse.core.builders.enable.webflowvalidator=true

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<webflow-project-description>
<configs>
<config>
<file>src/main/webapp/WEB-INF/flows/search-flow.xml</file>
<name>search-flow</name>
<beans-config>1:BeansModel|2:swf-phonebook|3:src/main/java/org/springframework/webflow/samples/phonebook/stub/services-config.xml</beans-config>
<beans-config>1:BeansModel|2:swf-phonebook|3:src/main/webapp/WEB-INF/flows/search-flow-beans.xml</beans-config>
</config>
<config>
<file>src/main/webapp/WEB-INF/flows/detail-flow.xml</file>
<name>detail-flow</name>
<beans-config>1:BeansModel|2:swf-phonebook|3:src/main/java/org/springframework/webflow/samples/phonebook/stub/services-config.xml</beans-config>
</config>
</configs>
</webflow-project-description>

View File

@@ -28,7 +28,7 @@ public class SearchCriteriaValidator implements Validator {
public void validate(Object obj, Errors errors) {
SearchCriteria query = (SearchCriteria)obj;
if (!StringUtils.hasText(query.getFirstName()) && !StringUtils.hasText(query.getLastName())) {
errors.reject("noCriteria", "Please provide some query criteria!");
errors.reject("noCriteria", "Please provide valid search criteria");
}
}
}

View File

@@ -1,4 +1,19 @@
<%@ include file="includeTop.jsp" %>
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>Person Details</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="logo">
<img src="images/spring-logo.jpg" alt="Logo">
</div>
<div id="content">
<div id="insert">
@@ -10,7 +25,7 @@
<td>Person Details</td>
</tr>
<tr>
<td colpan="2"><hr></td>
<td colspan="2"><hr></td>
</tr>
<tr>
<td><b>First Name</b></td>
@@ -48,4 +63,11 @@
</tr>
</table>
</form>
</DIV>
</div>
<div id="copyright">
<p>&copy; Copyright 2004-2007, <a href="http://www.springframework.org">www.springframework.org</a>, under the terms of the Apache 2.0 software license.</p>
</div>
</body>
</html>

View File

@@ -1,18 +0,0 @@
<%@ page session="false" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
</HEAD>
<BODY>
<DIV align="left">Error</DIV>
<HR>
<DIV align="left">
<P>
An error has occured!
</P>
</DIV>
<HR>
<DIV align="right"></DIV>
</BODY>
</HTML>

View File

@@ -1,5 +0,0 @@
<div id="copyright">
<p>&copy; Copyright 2004-2007, <a href="http://www.springframework.org">www.springframework.org</a>, under the terms of the Apache 2.0 software license.</p>
</div>
</body>
</html>

View File

@@ -1,21 +0,0 @@
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<title>Search the Phonebook</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="logo">
<img src="images/spring-logo.jpg" height="73" alt="Logo" border="0">
</div>
<div id="navigation">
</div>

View File

@@ -1,4 +1,20 @@
<%@ include file="includeTop.jsp" %>
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<title>Search the Phonebook</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="logo">
<img src="images/spring-logo.jpg" alt="Logo">
</div>
<div id="content">
<div id="insert">
@@ -14,29 +30,22 @@
<hr>
</td>
</tr>
<spring:hasBindErrors name="searchCriteria">
<tr>
<td colspan="2">
<div class="error">Please provide valid search criteria</div>
<form:errors cssClass="error"/>
</td>
</tr>
</spring:hasBindErrors>
<tr>
<td>First Name</td>
<td>
<form:input path="firstName" />
</td>
</tr>
<TR>
<tr>
<td>Last Name</td>
<td>
<form:input path="lastName" />
</td>
</TR>
<tr>
<td colspan="2">
<hr>
</td>
</tr>
<tr>
<td colspan="2" class="buttonBar">
@@ -48,4 +57,9 @@
</form:form>
</div>
<%@ include file="includeBottom.jsp" %>
<div id="copyright">
<p>&copy; Copyright 2004-2007, <a href="http://www.springframework.org">www.springframework.org</a>, under the terms of the Apache 2.0 software license.</p>
</div>
</body>
</html>

View File

@@ -1,4 +1,19 @@
<%@ include file="includeTop.jsp" %>
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>Phonebook Search Results</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="logo">
<img src="images/spring-logo.jpg" alt="Logo">
</div>
<div id="content">
<div id="insert">
@@ -50,4 +65,9 @@
</form>
</div>
<%@ include file="includeBottom.jsp" %>
<div id="copyright">
<p>&copy; Copyright 2004-2007, <a href="http://www.springframework.org">www.springframework.org</a>, under the terms of the Apache 2.0 software license.</p>
</div>
</body>
</html>