Commits

rainerh  committed 817ff5a

allow you to use a bean name for converters, just like you can with validators, action classes, interceptors
Issue number: XW-333
Obtained from:
Submitted by: Cameron Braid
Reviewed by: Rainer Hermanns

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@787e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 83ccc70

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/util/XWorkConverter.java

     }
 
     TypeConverter createTypeConverter(String className) throws Exception {
-        Class conversionClass = Thread.currentThread().getContextClassLoader().loadClass(className);
-
         // type converters are used across users
-        return (TypeConverter) ObjectFactory.getObjectFactory().buildBean(conversionClass, null);
+        return (TypeConverter) ObjectFactory.getObjectFactory().buildBean(className, null);
     }
 
     public void loadConversionProperties(String propsName) throws IOException {