Le Mardi, 1 avr 2003, à 17:24 Europe/Zurich, Bruno Dumon a écrit :
...That's basically the one thing where
we differ in approach: I would just let the fields remember their value,
instead of requiring some bean here, so the data and the form are the
same.
ok - makes sense with the distinction between "form beans" and "business beans" that you mention.
... Once the form is succesfully validated, some action code should then apply the data gathered in the form bean to the business bean.
Make sense but this is yet another mapping IMHO ;-)
can be trivial based on field names/reflection but still exists - another reason for a data-dictionary based approach.
...The validation I have in mind is mostly things like checking that for number fields, the user entered a number and not some random string (thus checking that the type conversion is succesful), maybe check length of strings, etc.
ok.
-Bertrand