|
From: Keith D. <ke...@in...> - 2005-04-07 14:46:31
|
Yes, that's fully supported. If you'd like to pull a 'formObject' from the context, you should be able to override the loadFormObject or createFormObject method - you should be able to do that dynamically using method injection. Keith -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Steven Devijver Sent: Thursday, April 07, 2005 10:31 AM To: spr...@li... Subject: [Springframework-developer] Re: webflow: improving FormAction Apparently "person.name" is supported, that is Spring supports the dotted notation when setting properties. As FormAction re-uses org.springframework.validation.DataBinder I suppose dotted HTTP parameters are supported. On Apr 7, 2005 3:59 PM, Steven Devijver <ste...@gm...> wrote: > Guys, > > Next to the "formObjectClass" property I think it would the useful to > add a "formObjectBean" string property which could be any bean ref id > in the bean factory (must be prototypes). This way one could control > the creation of the beans through Spring. You could for example > already fill in default values which could facilitate the re-use of > domain classes as form objects. > > Another remark regarding usage of domain classes as form objects is > about jumping over properties in the form object. Say my form object > is a Manager instance which has a "person" property. Person has a > "name" property. Is it possible to add a "person.name" HTTP parameter > that would set the "name" property on the "person" property? > > regards > > Steven > > -- > "If you want to be a different fish, you gotta jump out of the school." > -- Captain Beefheart > -- "If you want to be a different fish, you gotta jump out of the school." -- Captain Beefheart ------------------------------------------------------- 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 |