Hi Claudio,
in practice you will only rarely declare individual parameters, but
use submission beans instead. In that case everything is driven from
your bean class and constraints are propagated throughout the
framework. For instance a non editable constraint will automatically
remove the parameter from the submission when the bean is declared
(http://rifers.org/wiki/display/RIFE/Constraints).
The reason why every this declared in RIFE is three-fold:
* The engine guarantees that you have no naming conflicts in the data
flow which allows elements to function into any context (widget,
portlet, page, site).
* The engine takes control over your data flow and state transitions,
you don't have to handle it yourself at all, this is only possible it
it knows what it's working with.
* The data flow of your web application is clearly documented and
you're 100% sure that nothing else drives your element since no other
parameter will come in. This is a huge benefit once your application
starts growing beyond a trivial prototype or when multiple people are
working together on it.
Hope this helps,
Geert
On 18 Jul 2006, at 19:37, Claudio Miranda 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
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users