Author: pete.muir(a)jboss.org
Date: 2008-09-19 07:21:18 -0400 (Fri, 19 Sep 2008)
New Revision: 9028
Modified:
trunk/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java
Log:
JBSEAM-3430
Modified: trunk/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java 2008-09-19
11:20:31 UTC (rev 9027)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/converter/ConverterChain.java 2008-09-19
11:21:18 UTC (rev 9028)
@@ -85,11 +85,14 @@
FacesContext facesContext = FacesContext.getCurrentInstance();
if (valueExpression != null)
{
- Converter converter = facesContext.getApplication().createConverter(
- valueExpression.getType(facesContext.getELContext()));
- if (converter != null)
+ Class<?> type =
valueExpression.getType(facesContext.getELContext());
+ if (type != null)
{
- addConverterToChain(converter);
+ Converter converter =
facesContext.getApplication().createConverter(type);
+ if (converter != null)
+ {
+ addConverterToChain(converter);
+ }
}
}
}
Show replies by date