what about simple type conversion? How will you ever have non-string coming from html? Does this mean we are back to domain object with only strings?
On 3/23/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- [EMAIL PROTECTED] wrote: > Are you suggesting that we *ARE* back to needing > *DUMB* strings in our *RICH* domain models? I > thought the tired old FormBean was a thing of the > past! That's backwards. You were testing an int with a String test and it failed *because* it wasn't viewing everything as a string. So create a Zipcode datatype that allows for +4, use a regex or type-specific validator and a converter, and you have your "rich" domain model. Putting a zipcode in an integer is not a good idea, even if it *is* just for the US. d. ____________________________________________________________________________________ Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Scott [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]