> ----Original Message---- > From: [EMAIL PROTECTED] > Date: Nov 19, 2005 7:19:30 PM > To: dev@struts.apache.org > Subj: Re: DynaActionForm enhancement > [...] > As you probably saw, I added an 'enhanced' attribute to form-property > element to turn on the behaviour I introduced. What I'm thinking of is > to provide a 'factory' attribute instead, which would specify a class > implementing a createFormBean()-type method and making Struts delegate > to that if specified. > > It would then be really easy to build extensions like these and plug > them in as a factory. > > L. > I think I just sent an empty message with all the quoted text included. Sorry about that. My hand slipped.
Regarding your factory idea, that's an interesting thought. Maybe make a default factory and move the current instantiation code to that for consistency? I assume you would also provide some alternatives with the Struts distribution like an ImplicitInterfaceActionFormFactory and an ExplicitInterface... blah blah blah. One thing, though: what if I want both of them? I can't think of a good reason why anyone would, but just tossing some ideas around. In general, do you think the factory thing is intuitive enough? It's not quite as obvious what you can do with it as if you just have a couple new features that are well documented/advertised. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]