cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lgaw...@apache.org
Subject svn commit: r170950 - /cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java
Date Thu, 19 May 2005 15:48:54 GMT
Author: lgawron
Date: Thu May 19 08:48:53 2005
New Revision: 170950

URL: http://svn.apache.org/viewcvs?rev=170950&view=rev
Log:
cocoon.getComponent also nags about missing Context.javaToJS

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java?rev=170950&r1=170949&r2=170950&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java
(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java
Thu May 19 08:48:53 2005
@@ -324,7 +324,8 @@
      */
     public Object jsFunction_getComponent(String id)
         throws Exception {
-        return getServiceManager().lookup(id);
+        return org.mozilla.javascript.Context.javaToJS(getServiceManager().lookup(id), 
+                                                       getParentScope());
     }
 
     /**



Mime
View raw message