tested again on pluto 1.0.1 after some polishing

This commit is contained in:
Keith Donald
2007-04-01 19:29:55 +00:00
parent 417fb5ee79
commit 10c9605178
3 changed files with 26 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ page import="org.springframework.webflow.samples.phonebook.Person" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %>
<portlet:defineObjects/>
@@ -10,7 +10,7 @@
<head>
<title>Enter Search Criteria</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "style.css") %>" type="text/css">
<link rel="stylesheet" href="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/style.css") %>" type="text/css">
</head>
<body>

View File

@@ -1,7 +1,7 @@
<%@ 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" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %>
<portlet:defineObjects/>
@@ -10,7 +10,7 @@
<head>
<title>Enter Search Criteria</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "style.css") %>" type="text/css">
<link rel="stylesheet" href="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/style.css") %>" type="text/css">
</head>
<body>
@@ -36,21 +36,32 @@
<hr>
</td>
</tr>
<spring:hasBindErrors name="searchCriteria">
<tr>
<td colspan="2">
<form:errors cssClass="portlet-msg-error"/>
<div class="portlet-msg-error">Please provide valid search criteria</div>
</td>
</tr>
</spring:hasBindErrors>
<spring:bind path="searchCriteria.firstName">
<tr>
<td>First Name</td>
<td>
<form:input path="firstName" />
<input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>">
</td>
</tr>
</spring:bind>
<spring:bind path="searchCriteria.lastName">
<tr>
<td>Last Name</td>
<td>
<form:input path="lastName" />
<input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>">
</td>
</TR>
</spring:bind>
<tr>
<td colspan="2">
<hr>
</td>
</tr>
<tr>

View File

@@ -1,7 +1,7 @@
<%@ page contentType="text/html" %>
<%@ page session="false" %>
<%@ page import="org.springframework.webflow.samples.phonebook.Person" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet" %>
<portlet:defineObjects/>
@@ -10,7 +10,7 @@
<head>
<title>Enter Search Criteria</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "style.css") %>" type="text/css">
<link rel="stylesheet" href="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/style.css") %>" type="text/css">
</head>
<body>
@@ -18,14 +18,11 @@
<img src="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/images/spring-logo.jpg") %>" height="73" alt="Logo" border="0">
</div>
<%@ page import="org.springframework.webflow.samples.phonebook.Person" %>
<div id="content">
<div id="insert">
<img src="<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/images/webflow-logo.jpg") %>"/>
</div>
<form action="<portlet:actionURL/>" method="post">
<table>
<tr>
@@ -77,4 +74,8 @@
</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>