Jeremy Quinn wrote:

<snip/>

I just converted all my classes to use the
org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.FOM_Request. jsFunction_getParameter (String name) method, and they appear to be working.


Would it be 'safer' to pass the FOM_Cocoon object itself, and unwrap the org.apache.cocoon.environment.Request from it as Ugo appears to have done?


Yep. Furthermore, you don't have to "unwrap" the request, since FOM_Cocoon provides a getRequest() method that gives access to the _real_ o.a.c.environment.Request object.

Sylvain

--
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com




Reply via email to