Ugo, I will shortly commit changes that will allow you to use any JavaScript object (in addition to Java beans) as the model for an XMLForm. Attached is an example of the feedbackWizard sample using a pure JavaScript model. Of course, you can also embed Java objects inside the JavaScript object. Would this solve your problem? That way you could simply make your Java bean objects (derived from your O/R layer) properties of a larger JavaScript object that serves as the presentation layer model for XMLForm. Any additional information you need could also be stored in it.
Note to all: to make this work I will have to upgrade Cocoon to use JXPath 1.1b1. JXPath 1.0 has bugs that make it unusable for this purpose. Let me know if you think this will be a problem.
Go right ahead!
-- Stefano Mazzocchi <[EMAIL PROTECTED]> Pluralitas non est ponenda sine necessitate [William of Ockham] --------------------------------------------------------------------