Derek Hohls wrote:
Does anyone know of a more comprehensive sample
than the one supplied in the Cocoon samples directory?
(under cocoon/samples/databases/mod-db).  In the sitemap,
the comment is made that:

* no parameter validation is done (in a real application, you'd
want to check their values as well)
* you'd want to use an action set for this or even better, call these actions from the flow layer!

This last ability has been removed from flow. One can call actions like any other component from flow, but considering the required setup to fulfill the parameters needed for the act() method....

(The sitemap for this example also seems very verbose;
considering just one table or two tables are being handled;
can this approach not be 'generalized' further so that it can
easily scale up to handle a more complex database - on the
order of 20-60 tables....)

The key would be to use e.g. request parameters to select the right table-set and validation-set. However, this approach does not scale to complex transactions.

I assume that checking could (should?) be done with woody
form - is there any single sample (even for one database table)
that:

Adding cocoon forms aka woody and flow to the picture would also suggest to use eg OJB or Hibernate for a persistence layer. There's a OJB block in the distribution which illustrates the basic usage.

To use the mod-db actions (which is possible) would require to use
some JXPath enabled input module that can access the form model.
I believe there's no ready made one, but creating one should be
quite simple.

However, if there's (almost) no business logic involved and syntactic
validation of single values that can be done eg with regular
expressions, you might look into the simple form transformer and accompanying simple form instance transformer plus form validator
action. Anyway, this does not scale to complex business logic.


HTH
        Chris.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to