|
From: Kopylenko, D. <dko...@ac...> - 2003-04-09 14:34:17
|
-----Original Message----- From: Bruno THOMAS [mailto:bt...@al...] Sent: Wednesday, April 09, 2003 10:27 AM To: ExpertJ2EE with RodJohnson Subject: [expertj2ee_with_rodjohnson] interface21 Properties editor in BeanWrapperImpl Hi all, When I deployed the i21-web-demo.war I had always an ErrorCodedPropertyVetoException: errorCode=[typeMismatch]; message=(Failed to convert property value of type [java.lang.String] to required type [java.util.Properties] Anyway, I didn't have time to get to see what was happening, so I decided to make a little demo using interface21 with a piece of webapp that I want to migrate from struts to interface21. I've had the same exception. After getting source with CVS and few moments in the code, I've been able to see that in init of BeanWrapperImpl the line 57 : PropertyEditorManager.registerEditor(Properties.class,PropertiesEditor.class ); was commented out. As the PropertiesEditor is necessary for listing of url with the UrlHandlerMapping, I've removed the comment. After registering PropertiesEditor, all worked well (the web-demo and my demo). So why it was commented out ? Did I missed something (with for example StringArrayPropertyEditor) ? Is anybody having a clue about this ? Thanks by advance. Bruno THOMAS PS : sorry for my poor english --- Change your mail options at http://p2p.wrox.com/manager.asp or to unsubscribe send a blank email to lea...@p2..... |