cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: JavascriptForJavaProgrammers
Date Thu, 17 Mar 2005 20:33:13 GMT
   Date: 2005-03-17T12:33:12
   Editor: TimLarson
   Wiki: Cocoon Wiki
   Page: JavascriptForJavaProgrammers
   URL: http://wiki.apache.org/cocoon/JavascriptForJavaProgrammers

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -120,6 +120,9 @@
 ||import foo.*;||importPackage(Packages.foo);||
 ||import foo.Bar;||importClass(Packages.foo.Bar);||
 
+'''Note:''' Be sure to make importPackage(...) the first code line in your script, or you
may get an "Ambiguous import" error
+on the second and following runs of your script when attempting to reference an imported
class.
+
 Rhino understands Java bean properties, so if your Java classes have getters and setters
you can access them as properties in !JavaScript:
 {{{
   var d = new java.util.Date();

Mime
View raw message