Claudio,

 I believe the easiest way to handle this and what most developers
use is Submission Beans. You put all of you fields into one or more
bean classes. Then on the server side the form elements are loaded
into the bean. Checkout the Submission Bean section on the same link
you posted earlier:
http://www.rifers.org/wiki/display/RIFE/Element+Definition .

 Obviously, if you change a field on the bean you'll want to add the
field to your template, but it's quite easy to make a generate
"FormBuilder" for you site. The FormBuilder would take the bean/beans,
an optional list of display order and generate the form based on the
"blocks" from you template and the properties of your bean. Using a
design like that you can literally only change the bean and your
entire structure is corrected (Database, Modal, View) and you would
only need to change your Controller, if and only if you specifically
needed to access that bean property, otherwise the storage / retrieval
of the data would be handled by RIFEs bean utilities.

Cheers,
 Tyler

On 7/18/06, Claudio Miranda <[EMAIL PROTECTED]> wrote:

    First of all, I started to understand the RIFE framework. One of the point I
use is to compare how I do things today and how it could be done with RIFE.
Currently I use webwork 2.1.x.

    Looking at the Element Definition wiki page [1], I see that every form
parameter must be declared at submission element. So why is that needed ?
    I ask this because, if the web form has 5 parameters, it must be declared on
the following "aspects": View (velocity, JSP, whatever), validation layer, POJO,
O/R mapping and database fields. So thats is 5 things to change, if some new
field is needed.
    With RIFE, it grow one more point to change (as I understood how the forms
works), that is the element definition.
    So, I didn't get how the things works ?

1 - http://rifers.org/wiki/display/RIFE/Element+Definition

TIA

Claudio Miranda

_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users

_______________________________________________
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to