I avoid this by reloadind my form datas from a bean
(form.load(some_bean);), if you don't use a bean, maybe you can try like
this, then i hope you reload the form.
var form = new Form("forms/registration.xml");
var model = form.getModel(); //1
form.load(model); //2
form.showForm("registration-display-pipeline");
var model = form.getModel();
.....
Phil
Peter KrÃpfl wrote:
I don't really have a full understanding on continuations but with JX i
use continue.#{$cocoon/continuation/parent/parent/id}, i mean pointing
one more parent gets me back to the page before. To be able to be sure
where i get back i also added some var continuation =
cocoon.createWebContinuation(); in my flow at the points i really want
to go back.
Tell me if it's bad practice...
Hi Phil,
This works form me only partly, becaus if I go back, i keep loosing all the data
previously entered into the form.
That means the Forms are displayed correctly, but empty.
snip of my flow:
trying your solution:
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
function registration() {
var continuation = cocoon.createWebContinuation();
var form = new Form("forms/registration.xml");
form.showForm("registration-display-pipeline");
var model = form.getModel();
var helper = new Helper();
var timestamp = helper.timestamp();
var person = new Person(model.username, model.password, model.email,
model.firstname, model.sirname, model.address, model.zip, model.country,
model.birthday, model.phone, timestamp);
var bizData = person.Object2bizData();
var form_confirm = new Form("forms/registration_confirm.xml");
form_confirm.showForm("registration-confirm-pipeline", bizData);
....
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]