Not really. I use home-made classes myself and that works ok. What exactly
does not work if you use my sample script?

Bye, Helma

> -----Original Message-----
> From: Stephane Delort [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 18 June 2004 13:21
> To: [EMAIL PROTECTED]
> Subject: [flowscript] importclass ?
> 
> 
> 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/javascrip
> t/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]
> 

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

Reply via email to