cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Thénot <andre-li...@thenot.org>
Subject Re: Prepopulating
Date Tue, 05 Apr 2005 14:48:03 GMT
On Apr 4, 2005, at 9:06, Andre Juffer wrote:

> You can also access the database directly in your script. You could 
> return some object from persistence, which you could use to populate 
> your bean. Maybe it is possible to use that object as the bean for the 
> form (not tried).

IIRC, direct database access from javascript flowscripts is no longer 
supported. But you can create a java object that talks to the database 
and grabs values to place in the form if it's a new one. In other 
words, handle both the form submissions and the form prepopulating from 
your flowscript.

A.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message