-Ted.
Hubert Rabago wrote:
--- Mete Kural <[EMAIL PROTECTED]> wrote:
FormBean is a concept (properties that map to form elements), plus this idea of XML as a FormBean. It could be a List or String or anything.
XML as a FormBean! That got my attention...
What I would like to explore is the possibility of reusing existing DTOs/VOs in
the form beans. Perhaps they (DTO/VO) won't be used to hold the form values
directly, but the framework can use them to determine the fields of the form. The framework can already interpret whether the input string is valid or not,
there's a good chance it'll only take a step or two more to let the framework
convert it to the right data type.
This will really reduce DRY violations between DTO/VO objects, form beans and
validation rule mappings.
For a given form/action, the framework will be supplied with the FQCN of the DTO/VO. From there, it can determine what the fields of the form will be. The form bean validation/descriptor XML will provide the validation information and any conversion rules as needed to format/parse between the value object and the string representation for the form bean.
I've been playing around with this idea for sometime now, and wouldn't mind working on its code if there's interest in it.
__________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]