Jeremy,

I've never tried it but if I understood Chris correctly you can call the
method

form.populate( cocoon.request);

in your flow, and object of the type
org.apache.cocoon.environment.Request is available in your java class

HTH
Cheers,
Reinhard

> -----Original Message-----
> From: Jeremy Quinn [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 13, 2003 1:34 PM
> To: [EMAIL PROTECTED]
> Subject: converting FlowApp to new FOM
> 
> 
> Hi All,
> 
> I am in the process of converting a flow app written for Cocoon2.1RC1 
> to the new FOM.
> 
> The first problem I face is with the Request Object.
> 
> My helper Java Classes have been written to take an 
> org.apache.cocoon.environment.Request Object, but now my flowscripts 
> are not able to pass this anymore.
> 
> public interface Form {
>       
>       /**
>        * Update the Form from the incoming Request Parameters
>        * @param request Cocoon Request
>        */     
>       public void populate 
> (org.apache.cocoon.environment.Request request);
> 
> // snip
> }
> 
> The only methods of Request that my Classes call are to do 
> with getting 
> request parameters.
> 
> Is it safe to just convert these classes to use the 
> org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.FO
> M_Request 
> and call methods like public String jsFunction_getParameter(String 
> name) instead?
> 
> Or do I need a different approach?
> 
> thanks for any help
> 
> regards Jeremy
> 

Reply via email to