On 3/30/06, Joe Germuska <[EMAIL PROTECTED]> wrote: > Martin makes a good point -- even my suggestion about how to populate > non-string properties of ActionForms doesn't address displaying them > -- the form tags don't know enough to apply any locale sensitive > formatting when refilling a field. This might be something which > could be worked out, but it makes this a bigger issue. > > I think it would be great to integrate FormDef into Struts. > > Can anyone explain how WebWork handles this? I've read about the > advanced conversion services, which look good, but I haven't quite > seen how it handles re-displaying values in the case of conversion > errors, and I've run out of time to trace through the code to figure > it out for myself at the moment. > > Joe
FormDef can handle the formatting and parsing of these fields. It's not a replacement for ActionForms, it works using them, by taking care of their configuration, formatting (prepopulation), and parsing (upon form submission). In order to handle formatting and parsing, you need to tell FormDef what format (or converter) you want to use, and that means configuration. So if people were interested, there's two ways to look at this: add FormDef as a totally independent plugin with its own XML, like Validator and Tiles, or really integrate it, adding elements to struts-config. Like Joe, I'm also interested in how WebWork handles this, especially locale-specific field formats (number, dates, etc). I haven't reached that chapter in WWIA yet. Hubert --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]