From 4ab209a95476d012b8826a73694a0dda4d055914 Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Sat, 22 Mar 2008 04:13:06 +0000 Subject: [PATCH] class fallback --- .../java/org/springframework/webflow/mvc/view/MvcView.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/MvcView.java b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/MvcView.java index 31c5a4f7..508c8bab 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/MvcView.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/mvc/view/MvcView.java @@ -278,7 +278,12 @@ class MvcView implements View { private Formatter getFormatter(Expression target, Class targetClass) { if (formatterRegistry != null) { - return formatterRegistry.getFormatter(target.getExpressionString(), targetClass); + Formatter formatter = formatterRegistry.getFormatter(target.getExpressionString(), targetClass); + if (formatter != null) { + return formatter; + } else { + return formatterRegistry.getFormatter(targetClass); + } } else { return null; }