Note that you haven't added the user to the page (the viewdata construction)
in your script, so there is nothing to be displayed from the newUser object.

I suppose main() works, although I would avoid using 'main' as name to avoid
conflicts with assumptions elsewhere.

Bye, Helma

> -----Original Message-----
> From: Stephane Delort [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 18 June 2004 14:09
> To: [EMAIL PROTECTED]
> Subject: [flowscript] importclass ?
> 
> 
> Helma,
> 
> 
> If I use your sample script I only have a white page with no 
> code. Also, I must say that I adapted your sample to my app :
> 
> 
> 
> cocoon.load("resource://org/apache/cocoon/forms/flow/javascrip
> t/Form.js");
> 
> importPackage(Packages.toto.titi);
> function main()
> {
>   //var form = new Form("forms/login.xml");
>   //form.showForm("login-display-pipeline");
>  //var model = form.getModel();
>   //db_registration(model);
> 
>   var newUser  = new User();
> // also tried new Packages.toto.titi.User() and 
> Packages.User() with the same results
> 
>   cocoon.sendPage("confirm.jx");
> }
> 
> Stephane
> 
> 
> ---------------------------------------------------------------------
> 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