cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From H.vanderLin...@MI.unimaas.nl
Subject RE: [flowscript] importclass ?
Date Fri, 18 Jun 2004 13:04:03 GMT
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:Stephane.Delort@edag.de] 
> Sent: Friday, 18 June 2004 14:09
> To: cocoon-users@apache.org
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message