This commit is contained in:
Keith Donald
2008-02-27 16:55:11 +00:00
parent 5050cf25be
commit eeb8bb3a16
2 changed files with 5 additions and 13 deletions

View File

@@ -2,8 +2,6 @@ package org.springframework.webflow.samples.booking;
import java.io.Serializable;
import org.springframework.util.StringUtils;
/**
* A backing bean for the main hotel search form. Encapsulates the criteria needed to perform a hotel search.
*/
@@ -65,12 +63,6 @@ public class SearchCriteria implements Serializable {
}
public String toString() {
StringBuffer criteria = new StringBuffer();
if (StringUtils.hasText(searchString)) {
criteria.append("Text: " + searchString + ", ");
}
criteria.append("Page Size: " + pageSize);
return criteria.toString();
return "searchString = '" + searchString + "'";
}
}

View File

@@ -18,7 +18,7 @@
http://www.springframework.org/schema/faces-config/spring-faces-config-2.0.xsd">
<!-- Activates annotation-based bean configuration -->
<context:annotation-config/>
<context:annotation-config />
<!-- Instructs Spring to perfrom declarative transaction managemenet on annotated classes -->
<tx:annotation-driven />
@@ -31,7 +31,7 @@
<!-- Executes flows: the central entry point into the Spring Web Flow system -->
<webflow:flow-executor id="flowExecutor" flow-registry="flowRegistry">
<webflow:flow-execution-listeners>
<webflow:listener ref="jpaFlowExecutionListener" criteria="*"/>
<webflow:listener ref="jpaFlowExecutionListener" criteria="*" />
</webflow:flow-execution-listeners>
</webflow:flow-executor>
@@ -47,7 +47,7 @@
</bean>
<!-- Configures the Spring Web Flow JSF integration -->
<faces:flow-builder-services id="facesFlowBuilderServices"/>
<faces:flow-builder-services id="facesFlowBuilderServices" />
<!-- Drives transactions using local JPA APIs -->
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
@@ -58,7 +58,7 @@
<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="jpaVendorAdapter">
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"/>
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" />
</property>
</bean>