cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@codeconsult.ch>
Subject Re: [RT] Towards a new/another Forms Framework
Date Tue, 01 Apr 2003 15:32:50 GMT
<snip mode="agree"/>

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

Mime
View raw message