Commit graph

  • 585666e577 * restructured library mainly because JsDoc couldn't handle it, but also for better readability * renderMarkupPart and isSelected are no longer private methods, but static ones, so that the methods calling them can be defined as prototype properties * adapted helma.Html.TableWriter to the new structure (had to use method.call() since there is no default instance of helma.Html * added JsDoc compatible inline documentation grob 2007-01-30 14:49:57 +00:00
  • 21838fe606 * Remove synchronization problems in request timeout handling * Implement skin parameter handling via res.handlers.param * Implement onResponse() callback * Slim down renderSkin method implementation * Implement res.buffer to access current page output * Implement res.stop() to stop request execution * Do not reuse per thread scope, create a new one for each request hns 2007-01-29 16:00:44 +00:00
  • e6c287b35f * Use ThreadLocal.set(null) instead of ThreadLocal.remove(), which wasn't available pre Java 5. hns 2006-12-20 23:00:28 +00:00
  • 20354228a2 * Do not use Context.setCompileFunctionsWithDynamicScope() as it is seriously BROKEN for nested functions. The only workaround needed is a little fix in HopObject.put() to set the parent scope on functions because of the funky way we compile prototypes. * Use one ContextFactory instance per RhinoCore to initialize, enter and exit contexts, and use various call() methods to actually use it in RhinoCore.evaluate() and RhinoEngine.invoke(). * Set parent scope in HopObject constructor. * Use java.lang.ThreadLocal to implement engine/thread registration. * Implement RhinoCore.getRhinoCore() and RhinoEngine.getRhinoEngine(). * Implement rhino.strictvars to throw errors on undeclared vars. * Do not declare throws Exception in RhinoCore.processXmlRpc* methods. * Clean up error logging. hns 2006-12-20 21:52:22 +00:00
  • 68756f4b3e * Clean up formatting. hns 2006-12-15 15:13:00 +00:00
  • 2ec32f146a * Null out scriptingEngine if initScriptingEngine() fails. * Make sure we cause no uncaught exceptions in request evaluator loop, will cause helma to hang. * Make initScriptingEngine() synchronized. hns 2006-12-15 15:10:34 +00:00
  • 748779d346 added localisation support to format() and toPercent(). both now accept an optional java.util.Locale instance as last argument grob 2006-12-14 17:28:43 +00:00
  • 4f7765259a * Update with patches from http://dev.helma.org/wiki/Rhino+Bugs+%26+Patches/ including new patch https://bugzilla.mozilla.org/show_bug.cgi?id=360964#c7 hns 2006-12-14 14:20:46 +00:00
  • 6139814575 * Do not create new collections in recycle() - seems to have negative performance impact. hns 2006-12-12 15:31:30 +00:00
  • 414b22836b * Extract cache insertion code into new private registerNewNode() method. * Delay onInit() invocation until after the node has been registered with the cache. Two advantages: first, we won't call onInit() on nodes that are bound to be thrown away because a clone already exists in the cache, and second no need to cache nodes in the transactor clean node map, which was troublesome in exactly the same case. * Remove some old code that has been commented out for ages. hns 2006-12-12 14:54:52 +00:00
  • d843138386 * Extract collection clearing in commit() and abort() into new recycle() method, and throw away collections in order to avoid retaining too much memory. hns 2006-12-12 13:15:59 +00:00
  • 7e00def51c * No more need for per-thread-scope workaround, works out of the box with Rhino 1.6. hns 2006-12-11 09:55:23 +00:00
  • b210d5cd11 * Previous solution didn't work with Rhino running in interpreter mode. Provide a hook in RhinoException to make JS stack traces work with any optimization mode. See https://bugzilla.mozilla.org/show_bug.cgi?id=363058 hns 2006-12-07 12:12:14 +00:00
  • f3ce79f6c4 * Update with patches from http://dev.helma.org/wiki/Rhino+Bugs+%26+Patches/ including https://bugzilla.mozilla.org/show_bug.cgi?id=363058 hns 2006-12-07 12:10:14 +00:00
  • 00c9d56922 * Use helma.scripting.ScriptingException to produce script-only stack traces. * Therefore, do not unwrap ScriptingExceptions because they're actually useful. * Remove helma.util.StackUtils again. hns 2006-12-07 09:40:26 +00:00
  • 572194d2bc * Simplify exception handling in invoke(), bugs in Rhino have been fixed. hns 2006-12-07 09:27:39 +00:00
  • 54ab7ca121 * Backport StackUtils class from Helma 2. * Implement jsStackTrace option to generate pure JS stack traces in error dumps. hns 2006-12-06 16:28:12 +00:00
  • bfdd643a99 * Make Property.compareTo() immune against float/integer confusion, which is quite common in rhino. hns 2006-12-01 13:21:23 +00:00
  • aaa15f5670 * Register node with current transactor before calling onInit(), otherwise we really prepare the ground for infinite recursion problems. hns 2006-11-30 21:50:46 +00:00
  • 8e71110ad4 * Avoid setting parent in setNode() if the property name isn't persistable. hns 2006-11-30 21:04:44 +00:00
  • 5d5315f623 * Commit CVS snapshot from 2006-11-29 with added patch for chaining in ScriptableObject slot hashtable. http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/ hns 2006-11-29 09:32:51 +00:00
  • fb77729856 * Allow to directly pass a javax.mail.BodyPart to addPart(). hns 2006-11-27 12:47:04 +00:00
  • 9a98f81710 * Wrap example code in Html [pre] tag. hns 2006-11-27 12:32:36 +00:00
  • a38f504db3 * Make RowSet a public static class to allow its methods to be called by Rhino. hns 2006-11-24 10:28:15 +00:00
  • a40d1191ab Bogus edit, testing new commit mailer script. hns 2006-11-24 01:23:30 +00:00
  • 15871d0155 Bogus edit, testing new commit mailer script. hns 2006-11-24 01:09:33 +00:00
  • 2d69a460aa Bogus edit, testing new commit mailer script. hns 2006-11-24 01:08:38 +00:00
  • a06c6dd30b Removing test file hns 2006-11-24 00:58:12 +00:00
  • aabef79846 Bogus edit, testing new commit mailer script. hns 2006-11-24 00:56:26 +00:00
  • bc3336f29b Bogus edit, testing new commit mailer script. hns 2006-11-24 00:54:29 +00:00
  • 847d6096d7 Bogus edit, testing new commit mailer script. hns 2006-11-24 00:46:59 +00:00
  • bb664d0864 Bogus edit, testing new commit mailer script. hns 2006-11-24 00:42:50 +00:00
  • 078b0bc0a7 Bogus edit, testing new commit mailer script. hns 2006-11-24 00:33:00 +00:00
  • 67142a197d Bogus edit, testing new commit mailer script. hns 2006-11-24 00:31:17 +00:00
  • d02fc19ac9 Bogus edit, testing new commit mailer script. hns 2006-11-24 00:28:55 +00:00
  • 2199839a16 Bogus edit, testing new commit mailer script. hns 2006-11-24 00:18:12 +00:00
  • 0ca4922081 * Only reuse Java wrapper if it actually wraps the same object. * Rename local variable in getNodeWrapper(). hns 2006-11-23 14:51:25 +00:00
  • f249f893c5 Merge from helma_1_5 branch: * Do parent lookup for transient nodes in Node.getParent(), but omit warning message if it fails. hns 2006-11-23 13:49:41 +00:00
  • f1bb105b54 * Remove unused import statement. hns 2006-11-22 16:13:28 +00:00
  • b2bf03b033 * Fix bug where waiting thread isn't notified when requestengine is shut down. hns 2006-11-22 16:11:41 +00:00
  • 84e6a5f2f8 * Add ".prototype" to name of nexted functions. hns 2006-11-22 15:08:34 +00:00
  • 602f420f18 * Implement get/setBinaryMode(boolean) to allow delivery of the response body as byte array instead of as string. * Use OutputStreamWriter instead of DataOutputStream for writing the request body. hns 2006-11-21 10:42:25 +00:00
  • 32f5f25b9e * Always immediately convert to absolute paths in ApplicationManager. hns 2006-11-20 23:06:44 +00:00
  • db03770c72 * Minor reformat of Jsdoc comment. hns 2006-11-20 14:05:28 +00:00
  • 68db756b0e * Do not rely on Java classes to implement IPathElement. Implement all necessary features such as href() and getChildElement() ourselves instead. hns 2006-11-20 13:34:15 +00:00
  • 0eae6629ee * Allow native host methods in scripted JavaObjects to be overridden in JavaScript, but make sure we don't use any of the HopObject host methods. hns 2006-11-20 12:51:26 +00:00
  • 694139d897 * Do not rely on Java classes to implement IPathElement. Implement all necessary features such as href() and getChildElement() ourselves instead. * Add missing classes to class.properties. * Display actual line numbers in function source macro. hns 2006-11-20 11:05:24 +00:00
  • 21117936ad * Make overloaded methods (href, renderskin, ...) overridable in JavaScript. hns 2006-11-20 10:58:34 +00:00
  • d818de0d0a * Rewrite DocFunction to work with current Rhino 1.6 snapshot. - TokenStream is no longer public, implement Parser.parseTokens() - Parse public nested methods in JS constructors - adapt to slightly changed sequence of returned tokens. * Do not implement IPathElement in Server, Application and HelmaDoc classes. Implement the necessary methods in the manage application instead. * Add DocResourceElement.getStartLine() method to get element's position within the containing resource * Rename ScriptingEngine.getIntrospector() to getDoc() and declare DocApplication as return value. hns 2006-11-20 10:54:02 +00:00
  • 4e4cae0534 * Commit CVS snapshot from 2006-11-20 with added patch for Parser.parseTokens(): http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/ hns 2006-11-20 10:45:48 +00:00
  • 192f0b1df6 Checked apache-dom back in as it obviously is still needed. Original log message was: Apache DOM classes necessary for using and building getHtmlDocument() functionality. Extracted from Xerces-J 2.0.1 hns 2006-11-20 09:17:39 +00:00
  • 5ec24e7ba8 * Not needed anymore, replaced by TokenStreamInjector in rhino.jar hns 2006-11-15 15:49:24 +00:00
  • bc8653a873 * Work on DocFunction to make it work with Rhino 1.6. * Make DocFunction not a RuntimeException, and throw it only where needed. * Add TokenStreamInjector class to rhino to make TokenStream publicly available * Add StringUtils.splitLines() hns 2006-11-15 15:48:46 +00:00
  • 578ecb148b * Removing Apache DOM implementation, not needed anymore with modern JDKs. hns 2006-11-15 15:41:25 +00:00
  • e36bbce6d3 changed Html.dropDown(): allow property "class" for specifying css class names if the option parameters are specified as object (using "value" and "display" properties) grob 2006-11-13 16:59:44 +00:00
  • fe74d6e0ad * changed signature of addDocuments() - it's now possible to specify an optional mergeFactor * bugfix in getField(): don't try to convert the string value into a date, since this possibly does the conversion even if it's not intended (it can happen that an id is converted into a date). therefor re-introduced the method getDateField() grob 2006-11-13 16:56:45 +00:00
  • 377752ae02 * Update to Rhino CVS snapshot from 2006/11/12 including the patches from http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/: - Rethrown exceptions rendered as [object Error] - Provide protected callback methods in Rhino debugger SwingGui - Bug in tail call optimization that cripples Rhino debugger hns 2006-11-13 16:24:22 +00:00
  • a6c3cef342 * Make the debugger work, using a Rhino CVS snapshot with the patch from http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/ hns 2006-11-13 09:48:26 +00:00
  • ac544fe0dd * Update to Rhino CVS snapshot from 2006/11/12 including the patches from http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/ hns 2006-11-13 09:46:28 +00:00
  • d5392b3600 This commit was manufactured by cvs2svn to create tag 'helma_1_5_3'. hns 2006-11-08 13:37:17 +00:00
  • 6af4923d92 * Call onStart() directly in calling thread rather than in scheduler to make sure it completed before the application gets mounted. hns 2006-11-08 13:37:16 +00:00
  • 9bd30b6a66 * Call onStart() directly in calling thread rather than in scheduler to make sure it completed before the application gets mounted. hns 2006-11-08 13:31:02 +00:00
  • 618d64b6d9 * Update version to 1.5.3 hns 2006-10-31 15:04:46 +00:00
  • dfd673e7b6 * Add log level info such as [INFO], [ERROR], [WARN] to log output. * Add Logger.Entry class to avoid unnecessary String concatenation. * Unify Logger classes code a little bit, making better use of inheritance. * Run logger thread 3 times per second instead of 4 times. * Add Javadoc comments and tags. hns 2006-10-31 14:57:55 +00:00
  • dee9082f1c * Add log level info such as [INFO], [ERROR], [WARN] to log output. * Add Logger.Entry class to avoid unnecessary String concatenation. * Unify Logger classes code a little bit, making better use of inheritance. * Run logger thread 3 times per second instead of 4 times. * Add Javadoc comments and tags. hns 2006-10-31 14:57:55 +00:00
  • 78eabaa7cb fixed bug in addField() that made it impossible to disable store, index and tokenize options for a field. grob 2006-10-23 18:56:36 +00:00
  • be47e80327 * Convert file name to absolute path in constructor to work around java.io.File glitches. Fixes bug 488 <http://helma.org/bugs/show_bug.cgi?id=488> (merge to helma_1_5 from HEAD) hns 2006-10-23 18:36:48 +00:00
  • c0cc7a633d * Use extensionId/prototype name instead of just the prototype name if a filter refers to the prototype column. Fixes bug 484 <http://helma.org/bugs/show_bug.cgi?id=484> (merging to helma_1_5 from HEAD) hns 2006-10-23 18:34:23 +00:00
  • cff3a556ee * Avoid "Error unsetting property JavaPackage on Global" message on code updates. hns 2006-10-17 12:02:45 +00:00
  • cbcc04c1fb * Set/Get current RequestEvaluator explicitly via ThreadLocal * Prevent NullpointerException when scripting engine is initialized from non-request-evaluator thread (merge from helma_1_5 branch) hns 2006-10-17 11:44:51 +00:00
  • 1b32fa7cee * Set/Get current RequestEvaluator explicitly via ThreadLocal * Prevent NullpointerException when scripting engine is initialized from non-request-evaluator thread hns 2006-10-17 09:28:18 +00:00
  • 0470c24db3 * Simplified addRepository() a bit, no need to track updated resources here. hns 2006-10-16 13:56:58 +00:00
  • db45092717 * Implement code injection feature to RhinoEngine/Core to allow app.addRepository() to immediately compile new resources. (merge from helma_1_5 branch) hns 2006-10-16 13:45:53 +00:00
  • 58e9431da1 * Simplify return statement, removing local variable. hns 2006-10-16 13:12:24 +00:00
  • bfc5b513b6 * Implement code injection feature to RhinoEngine/Core to allow app.addRepository() to immediately compile new resources. hns 2006-10-16 12:44:43 +00:00
  • bb0aebb02f updated lucene from 1.4.3 to 1.9.1 grob 2006-09-29 13:51:37 +00:00
  • 5496bcfb04 * this library now expects Lucene version 1.9.1 (due to API changes in Lucene it currently doesn't work with version 2.0) * added (most of) missing analyzers in Search.getAnalyzer() * createIndex doesn't support a third argument for force-create an index anymore. to clear an index use its create() method instead * Index now uses an IndexModifier instead of an IndexWriter in most cases * to create a new Searcher instance now call index.getSearcher() or pass the index to search in as argument to the Searcher constructor * checkWriteLock() is gone, instead getWriter() and getModifier() try for 2 seconds to return a writer/modifier. this should avoid concurrency problems * Index.addIndexes() now takes a number of index directory arguments * Index.create() now deletes all files in the directory (before it didn't) * added checks for existing writer/modifier/reader before calling close() * Index.getFieldNames() now returns a javascript array instead of a java object one * Index.isLocked() doesn't create a reader anymore (before it did, but didn't use it) * removed Index.getTerms() - if someone is missing that, shout * Index.addDocument() now expects a single Document instance, for batch adding use the new method addDocuments() * same with Index.removeDocument() * added new method Index.updateDocument() that does removal and adding in one step (so the index is locked just once instead of two times) * the wrapped lucene Query instance is now a public field - this saves from duplicating the getter method in every extending prototype * Document.addField() now uses new DateTools class instead of the deprecated DateField utility methods * removed Document.getDateField() since Document.getField() now handles dates as well * added JSDoc compatible documentation grob 2006-09-29 13:49:40 +00:00
  • 3e7c260787 * Convert file name to absolute path in constructor to work around java.io.File glitches. Fixes bug 488 <http://helma.org/bugs/show_bug.cgi?id=488> hns 2006-09-27 14:09:11 +00:00
  • 2108be3807 * Use extensionId/prototype name instead of just the prototype name if a filter refers to the prototype column. Fixes bug 484 <http://helma.org/bugs/show_bug.cgi?id=484> hns 2006-09-27 13:24:11 +00:00
  • df7c3e0c86 * Copy over updated keyMap in update(). hns 2006-08-25 18:51:16 +00:00
  • acc5471ca9 * Copy over updated keyMap in update(). hns 2006-08-25 18:44:43 +00:00
  • e6d7fe7520 workaround for http://helma.org/bugs/show_bug.cgi?id=474 went into the wrong repository: changed the way the number of days is calculated. stefanp 2006-08-21 15:57:05 +00:00
  • 59d38d2ea8 * Update to Rhino CVS snapshot from 2006-08-21 to fix JavaBean property bug in 1.6R3 (see <https://bugzilla.mozilla.org/show_bug.cgi?id=343976#c4>) hns 2006-08-21 10:19:39 +00:00
  • dc9e49c665 Changed version numbers to 1.6.x zumbrunn 2006-08-19 06:56:47 +00:00
  • ebfbdae001 * Use getFunctionName(), functionName field isn't accessible anymore. hns 2006-08-18 20:12:09 +00:00
  • e5033685db * Update Rhino to 1.6R3. * Remove old Rhino 1.5 classes, make Helma debugger subclass Rhino 1.6 classes (not fully functional yet, needs patches to Rhino debugger). * Make helma.doc.DocFunction compile with Rhino 1.6 by introducing intermediary DockenStream class that proxies TokenStream using java reflection. hns 2006-08-18 20:09:37 +00:00
  • bc8b4ce0b0 This commit was manufactured by cvs2svn to create branch 'helma_1_5'. hns 2006-08-18 14:59:40 +00:00
  • fc37ba8cb3 * Try to delete work/src before copying over files. helma_1_5_2 hns 2006-08-18 14:59:38 +00:00
  • 89dfbbdaa1 * Update version info to 1.5.2 hns 2006-08-18 14:41:20 +00:00
  • 9def07d6e9 * Omit parent lookup in getParent() for transient nodes. hns 2006-08-16 11:41:08 +00:00
  • f779decdfc * Minor code improvement in write() method. hns 2006-08-16 11:05:26 +00:00
  • 736769cc80 * Fix terrible guaranteed nullpointer exception bug. helma_1_5_1 hns 2006-08-11 18:00:38 +00:00
  • 47b101827a * Clean up and unify DbMapping constructors a bit. * Make typename, app, and props fields final. * Issue prominent warnings if parent proto can't be resolved or relational extended type doesn't have a _prototype mapping. * Determine in update() if this is a relational mapping or not. hns 2006-08-10 21:28:58 +00:00
  • 5924f93f81 * Issue a prominent warning if parent can't be resolved using a prototype's _parent setting hns 2006-08-10 21:23:49 +00:00
  • c32fec5dde * Make root _parent info in type.properties case insensitive. hns 2006-08-10 21:19:20 +00:00
  • 6022d616b5 * Add better error logging to getParent() * Add checks for underscore property name before persisting/marking dirty in setNode() * Extract underscore property name check into isPersitableProperty() method hns 2006-08-10 20:01:09 +00:00
  • 8c4273631d * Do not register newly created root nodes with the node cache as this may cover actual root nodes stored in a relational database. hns 2006-08-10 15:16:01 +00:00
  • 33d59c0c59 * Check if _prototype is set in type.properties before appending proto clauses to queries. hns 2006-08-09 19:36:51 +00:00
  • 9a6757f75b * Two fixes for case insensitive maps in containsKey() and get(). hns 2006-08-09 11:04:29 +00:00
  • 16eca87022 * Implement both ETag and Last-Modified based conditional requests as some browsers (e.g. Safari) don't seem to support ETags for embedded images and stuff. hns 2006-08-09 10:24:31 +00:00