Commit graph

2276 commits

Author SHA1 Message Date
hns
1a9f3a1e21 Changed dependsOn() argument to String to force coercion to string.
This will probably break FESI, but is required by Rhino (e.g. for NativeDate).
2003-06-25 15:19:52 +00:00
hns
9a05228c4c Refactored and simplified renderSkin* methods. 2003-06-25 15:15:02 +00:00
hns
5618ac1b4e Internally replace '.' with '_' in action names. 2003-06-25 15:14:24 +00:00
hns
b98f8b6751 Internally replace '.' with '_' in action names.
Implement proxy method for Application.getSkin() that takes care of per-request caching.
2003-06-25 15:13:46 +00:00
hns
146d9d9285 Changed skin cache methods to take any object as key. 2003-06-25 15:12:20 +00:00
hns
89e9e1d32f Changed signature of getSkin to take a prototype name instead of a path element parameter. 2003-06-25 15:11:02 +00:00
hns
ffc8956b8a Added setText() method and lots of JavaDoc comments. 2003-06-25 12:14:36 +00:00
hns
7f213bf43a Make res.skinpath work. 2003-06-25 11:56:11 +00:00
hns
9e5ab59493 Do not create a constructor for HopObject - this is done by defineClass(). 2003-06-25 10:46:37 +00:00
hns
352f9c7fec Follow Rhino conventions for JavaScript constructor naming. 2003-06-25 10:46:14 +00:00
stefanp
203e409bc6 fixed chopDelimiters() again 2003-06-24 14:42:59 +00:00
stefanp
84ae9050f7 chopDelimiters() fixed to chop beginning as well as ending from the same line 2003-06-24 14:31:38 +00:00
hns
1d5e54c134 Remove unused prototypeField variable. 2003-06-24 14:11:05 +00:00
hns
284121edeb Removed reference to FESI package. 2003-06-24 14:07:33 +00:00
hns
7db0c07fe2 Make classMapping case sensitive, add method for prototype to java class name lookup.
Add simple constructor taking just a name argument.
2003-06-24 14:06:53 +00:00
hns
51ef5f0ff3 Added feature to switch case sensitivity on and off. 2003-06-24 14:05:12 +00:00
hns
33ea2b629a Removed import for helma.scripting.fesi package 2003-06-24 14:03:21 +00:00
hns
052b847c7a Lots of fixes and cleanup. 2003-06-24 14:02:35 +00:00
hns
4236304e84 Moved extensions to separate directory. 2003-06-24 14:00:55 +00:00
stefanp
fcbfb8ace9 listTags() filters with string and no longer with int 2003-06-24 11:20:40 +00:00
stefanp
4651579309 rewrote class to make custom tag types possible
kind is now type and is no longer int but a string. features whatever comes
after the @-sign in the tag
2003-06-24 11:20:18 +00:00
stefanp
f99141a97b use Util.chopComment() instead of doing it here.
solved constructor problem for TokenStream - we need jra from
rhinoLatest or from cvs
2003-06-24 11:18:54 +00:00
stefanp
0af3973929 added static chopComment() which chops everything after a closing comment tag 2003-06-24 11:17:57 +00:00
hns
b40e39c98c Use constructor for TokenStream (adding additional null argument). 2003-06-24 08:31:14 +00:00
hns
ec1aed6650 Override wrapAsJavaObject in wrapper factory to check for IPathElement objects. 2003-06-23 15:58:25 +00:00
hns
3c1c5b47b8 Implemented stopping of running threads. kicked out some dead code. 2003-06-23 15:54:34 +00:00
stefanp
71ac4541ae make the introspector work with rhino 2003-06-23 15:39:18 +00:00
hns
b67b75c3b4 handle org.mozilla.rhino.NativeString as string in HopObject.put(). 2003-06-23 15:21:39 +00:00
stefanp
6109f475f0 kicked out FESI parser and implemented parsing with rhino dependency.
all token-handling/file-parsing moved to DocFunction.java, all raw file
handling to Util
2003-06-23 14:49:49 +00:00
hns
0667d9d091 Check for null when converting arguments in invoke(). 2003-06-23 14:17:38 +00:00
hns
6ecee221e7 Be more careful about entering and exiting contexts. 2003-06-23 14:12:42 +00:00
hns
3443179755 Use native JavaScript array when converting a XML-RPC Array. 2003-06-23 14:12:05 +00:00
hns
358d59fc40 Use a helma.util.SystemMap for app.modules so it is wrapped by the scripting engine
as native object.
2003-06-20 14:42:49 +00:00
hns
6f2647712d Do not throw exceptions, instead return an object with either a result or an error property. 2003-06-20 14:42:08 +00:00
hns
2f5c368124 Added Remote (XML-RPC client) object.
Fixes in XML-RPC argument encoding.
2003-06-18 16:11:02 +00:00
hns
a758a479d7 Return string representation if hint is null in getDefaultValue. 2003-06-18 16:09:37 +00:00
hns
5a519db3c6 Implement basic encoding/decoding of incoming XML-RPC calls. 2003-06-18 15:00:11 +00:00
hns
74a3137577 Implement getDefaultValue(String.class) for MapWrapper. 2003-06-18 14:59:34 +00:00
hns
aff761a1ec do a Context.toObject() on the result of getURL(). 2003-06-18 14:59:07 +00:00
hns
6939b8cb26 Updated version string to 1.3-alpha-0 2003-06-17 14:47:03 +00:00
hns
2558a118a9 Invoke scripted constructor function. 2003-06-17 14:44:59 +00:00
hns
85a6afe857 * We now have our own version of FunctionObject.addAsConstructor() to install
HopObject constructors, because we do not want the prototype.constructor property
   to be set. Otherwise, scripted constructor functions are shadowed.
* Fix typo in getElementWrapper().
2003-06-17 14:44:39 +00:00
hns
9581df2ac4 Checking in the MailExtension. 2003-06-17 13:15:30 +00:00
hns
2be8b10e8c Change argument type for write/writeln/debug methods from Object to String
so that toString() is performed by the script runtime. (FESI wasn't able to do this,
but Rhino is.)
2003-06-17 12:23:48 +00:00
hns
5431daadcf Changed default scripting engine to helma.scripting.rhino.RhinoEngine. 2003-06-16 19:48:35 +00:00
hns
5f46bdf3a2 * replaced helma.util.CacheMap with java.util.WeakHashMap for wrapper caching
* do wrapper caching for IPathElement (java object) wrappers
* only wrap instances of helma.util.SystemMap with MapWrappers
* do not wrap Strings.
2003-06-16 18:56:53 +00:00
hns
3691b6d977 Return string values unwrapped. 2003-06-16 18:54:49 +00:00
hns
dd59d7e911 * Added implementation for Node.clearCache().
* fixed setting of HopObject properties.
2003-06-16 18:54:31 +00:00
hns
44a1235803 Added helma.util.SystemMap class as a HashMap that is used
internally by Helma and is wrapped as a native JavaScript object.
2003-06-16 18:53:33 +00:00
hns
8aa7c6bf33 Renamed getSkinfiles(path) to getSkinfilesInPath(path) because Rhino's
Java Bean setter/getter mechanism got confused for app.skinfiles.
2003-06-13 15:46:41 +00:00