|
From: Will B. <wil...@ra...> - 2005-04-27 16:19:16
|
So, how can I handle this with web flow? For each "request" in which a bind is not performed, it seems that I will have to add in a state that creates a binder, registers my custom editors, and sticks the bind exception model in my model. Have any other web flow users dealt with this problem? Thanks, Will On Thu, 2005-04-14 at 17:23 +0200, Juergen Hoeller wrote: > 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 > > > > ------------------------------------------------------- > 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 |