Hi Helma,

I tried to comment the form but it does not work.

The only wayto make things working "correctly" is to comment the line

    var newUser = new Packages.com.myCompany.myProject.User();
and the ones which refer to the newUser objects.


Does my class needs to extend, implement special classes or throw some exceptions...


regards,
Stephane



-----------------------------------------------------------------------
FWIW:

the <large number>.continue comes from the form you display (probably your
login screen). If the code doesn't go beyond that, there might be an error
in your form that prevents it from quitting.

What you could try is bypass the form and set the user in the flowscript,
then testing if you can display it in your confirm.jx.

e.g.

cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
function doLogin ()
{
//    var form = new Form("forms/login.xml");
//    form.showForm("login-display-pipeline");
//    var model = form.getModel();

      var newUser = new Packages.com.myCompany.myProject.User();
     newUser.setName("testname");
     newUser.setPassword("testPassword");

     var viewData = {user: newUser};
      cocoon.sendPage("confirm.jx", viewData); // note, use 'user' in your
JXtemplate
}

If this works, add the form and check again.

HTH.

Bye, Helma


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to