cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugo Burm" <>
Subject RE: Persistance Storage with XMLForm and Flowscript?
Date Wed, 16 Apr 2003 16:43:36 GMT

I don't understand what you want to do with a DOM representation. I would
suggest to store your data in a Javabean and use this bean from Flowscript.
That is easy. See the prefs example below. And then find a way to make your
bean persistent. One of the solutions is Hibernate.

I just ported the flowscript "prefs" example
to XMLForm and I am using Hibernate to make the data persistent.
The user data is now stored in a Mysql database. (In the original example it
was stored in a hashmap in memory)

I am writing a Wiki page about this. It should arrive before the weekend.
For Hibernate in combination with Cocoon see one of the older Wiki pages:

Hugo Burm

-----Original Message-----
From: Laurent Trillaud []
Sent: Wednesday, April 16, 2003 4:02 PM
Subject: Persistance Storage with XMLForm and Flowscript?

I'm using XMLForm with Flowscript as describe in the cocoon
But I would like to implement persistence storage: to retrieved
information from a file system or a database to populate the form and to
save it when the wizard finish.
With the flowscript version of the XMLForm, the Model is handle in
javascript with this few line

... sniplet
    var bean = {
        firstName: "Donald",
        lastName: "Duck",
    xform.setModel ( bean );
... /sniplet

How can I give a DOM to the setModel function?
Thanks in advance
Laurent Trillaud

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message