org.kuali.rice.kew.web
Class ContextSensitiveConverter

java.lang.Object
  extended by org.kuali.rice.kew.web.ContextSensitiveConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter

public class ContextSensitiveConverter
extends Object
implements org.apache.commons.beanutils.Converter

A BeanUtils Converter which delegates to an original convertor or a KEW converter depending on what the current ModuleContext is. This allows for the KEW struts module to run inside of an ActionServlet that has the "convertNull" init-param set to null. The KEW module depends on this being set to true in order for the form processing to work properly. When KEW is embedded in a web application where this is not the case, we need to work around the issue by registering custom converters to convert the values properly when inside the context of the KEW struts module but preserve the conversion behavior of the parent struts module.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ContextSensitiveConverter(org.apache.commons.beanutils.Converter originalConverter, org.apache.commons.beanutils.Converter kewConverter)
           
 
Method Summary
 Object convert(Class type, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextSensitiveConverter

public ContextSensitiveConverter(org.apache.commons.beanutils.Converter originalConverter,
                                 org.apache.commons.beanutils.Converter kewConverter)
Method Detail

convert

public Object convert(Class type,
                      Object object)
Specified by:
convert in interface org.apache.commons.beanutils.Converter


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.