NYIMI Jose (BMB) wrote:
True data binding is generally inflexible and troublesome. Having come from the VB world many years ago, and its data binding way of doing things, I can say that I can't stand it. Having a middle ground creates more opportunities and power than not having it. I know some who still do data binding in swing apps, and they end up doing lots of hacks to perform things like validation, both simple and complex, and other 'process' type of actions. All of this is easy to do with the way Struts handles things. Taking the data out of a DynaForm once I'm done doing simple validation and maybe some pre-processing, then doing a simple copyProperties call to take the string version of the data and populate a 'real' domain object is to easy for me want to give up.-----Original Message-----Inelegant solution :)
From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Monday, February 17, 2003 4:35 PM
To: Struts Users Mailing List
Subject: RE: Struts design flaw -- ActionForms are not true domain objects
If you use any flavor of DynaXXXXForms, you can pass the user input directly to the business domain as a DynaBean interface which is not directly connected to Struts, but rather to org.apache.commons.beanutils package.
You will most likely still have to convert to some sort of DataTransportObject or ValueObject, but the beanutils package also has conversion tools for this.
That one of the reason Rod Johnson said : " ... so Struts has only taken us part of the way towards true data binding."
Jos�.
- Robert
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

