|
From: Juergen H. <ju...@in...> - 2005-04-14 15:24:35
|
Well, the custom property editors are carried by the BindException's BeanWrapper instance. If there is no BindException in the model, we can only use a default BeanWrapper to obtain a property value, where there can't be any custom editors... So if you want custom property editors to apply, expose the binder's BindException through including errors.getModel() in your model. Even if there are no errors contained in it, this will expose all custom property editors that apply. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Will Butler Sent: Thursday, April 14, 2005 8:50 AM To: spr...@li... Subject: [Springframework-developer] BindStatus.value All, When there are errors in the model, status.value is obtained from errors.getFieldValue(expression), which executes a custom property editor for the field if one exists. When there aren't errors in the model, status.value is obtained from the bean wrapper, and custom property editors are not invoked. Why not? Thanks, Will ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |