Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=XW-50


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XW-50
    Summary: Delegate XWorkConverter conversion to Jakarta Commons ConvertUtils if a 
type is registered
       Type: Improvement

     Status: Assigned
   Priority: Major

    Project: XWork
 Components: 
             Interceptors
   Versions:
             1.0

   Assignee: Patrick Lightbody
   Reporter: Cameron Braid

    Created: Thu, 29 May 2003 8:02 AM
    Updated: Thu, 29 May 2003 8:02 AM

Description:
I have been playing with adding in support for Commons Bean utils ConvertUtils class 
to provide the fallback converter if no action:property ognl converter class is 
registered.  I have achieved it by adding this code at the start of doConvert (as well 
as using my fix to XW-49)


Object doConvert(Map context, Object value, Class toType)
{
  /**
    * delegate to ConvertUtils if the type is registered
    */
    if (ConvertUtils.lookup(toType) != null)
    {
      if (value instanceof String)
      {
        return ConvertUtils.convert((String)value, toType);
      }
      else if (toType.equals(String.class))
      {
        return ConvertUtils.convert(value);
      }
    }
...
}


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to