From 155c23f4f05ccd8b092013c9bc66fa388a38468a Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Thu, 24 Apr 2008 03:20:07 +0000 Subject: [PATCH] don't assume file when view resolvers are set --- .../webflow/mvc/view/MvcViewFactoryCreator.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/MvcViewFactoryCreator.java b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/MvcViewFactoryCreator.java index 655854a2..034a2bca 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/MvcViewFactoryCreator.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/MvcViewFactoryCreator.java @@ -58,8 +58,11 @@ public class MvcViewFactoryCreator implements ViewFactoryCreator { } public String getViewIdByConvention(String viewStateId) { - // TODO - make configurable - return viewStateId + ".jsp"; + if (viewResolvers != null) { + return viewStateId; + } else { + return viewStateId + ".jsp"; + } } } \ No newline at end of file