Jorg,
On 23 Sep 2004, at 17:20, Jorg Heymans wrote:
Of course you need to perform the binding in your flow or wherever after the user presses "next".What do you mean here?
The flow function to display your form(s) would be something like this:
function showForm(form) {var bean = new Packages.yourPackage.yourBean();
// if you are editing an existing bean then load it here with hibernate
form.load(bean); // do load binding
form.showForm("show-form-one"); // show first form
form.save(bean); // bind form 1 to bean
form.showForm("show-form-two"); // show second form
form.save(bean); // bind form 2 to bean
...
// do your hibernate persistence stuff
}
Also: how does cocoon know which values have been set in the selectionlist when the user presses "back" in the browser? I guess this is all stored in the continuation object right? Or are these pages filled from browser cache?
I'm not entirely sure how this works. As I understand it when you press back in the browser the page will be filled from the browser cache. However, I believe that you can create a bookmark in your flowscript and pass that into your form. This can be used to implement a proper back button on the page itself that will actually call the continuation ID stored in the bookmark, and so return your bean state to its previous one. As you can see this area is not so clear for me, the best docs I could find were at http://cocoon.apache.org/2.1/userdocs/flow/continuations.html
Robin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
