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; }