Adrian Crum
f796c21344
Another trivial JavaDoc fix.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779255 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 17:37:57 +00:00
Adrian Crum
5b2374e186
Trivial JavaDoc fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779194 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 14:47:28 +00:00
Jacopo Cappellato
452fbe184f
Misc fixes and enhancements to the Catalina cluster support.
...
Patch from Scott Gray and me, based and bug reports and tests from Sam Hamilton and Nico Toerl.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778560 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26 05:10:57 +00:00
Scott Gray
4d35a95876
Searched for and fixed any other code incorrectly using BigDecimal.equals() as reported by Hans for r778302
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778358 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 09:00:39 +00:00
Adrian Crum
8b3859b9e5
FileUtil.java improvements.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@776980 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 07:02:17 +00:00
David E. Jones
f0a919be57
Small change to use the stream that was opened and closed instead of opening another one
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@776726 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 15:08:47 +00:00
Adrian Crum
818d0ac7b7
Closed an InputStream that was left open.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@776563 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 05:29:52 +00:00
Hans Bakker
d8a175d4a6
added a function to check for the presence of a companent, make the projectmanager custrequest creation working using the commevent as the data, added some allow-html= safe flags
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@775883 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18 10:07:51 +00:00
Adrian Crum
2621ec1c01
Small improvement to UEL - added $null variable name modifier so variables can be compared to null.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773927 13f79535-47bb-0310-9956-ffa450edef68
2009-05-12 15:09:11 +00:00
Adrian Crum
a5000b773b
Reverting part of my previous commit that wasn't necessary.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773721 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 23:16:08 +00:00
Adrian Crum
b0cf3e7122
Some new UEL functions. Mini-lang can now be used to implement simple web page scrapers or mashups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773709 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 22:05:57 +00:00
Adrian Crum
da19441232
Small change to new JAXP TrAX methods - they now accept Node arguments instead of Element arguments.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773706 13f79535-47bb-0310-9956-ffa450edef68
2009-05-11 22:01:55 +00:00
Adrian Crum
6193535231
Small improvement to FlexibleStringExpander.java to help cut down on error messages.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@773145 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 00:40:28 +00:00
Adrian Crum
d3403f89f5
Reverted one of my changes that is no longer needed.
...
I apologize for the repository thrash. I made the mistake of adding the apostrophe to quote substitution at the last minute without fully testing it. I'll try not to do that again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772735 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 18:15:39 +00:00
Adrian Crum
4146f9f466
Removed apostrophe to quote substitution. It caused problems with FreeMarker macros.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772729 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 17:59:23 +00:00
Adrian Crum
a8f4a77a6a
Improvements to recent commit suggested by Adam Heath.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772711 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 17:08:20 +00:00
Adrian Crum
f5473d2589
Updated model widgets to use operator substitution.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772709 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 16:58:40 +00:00
Adrian Crum
0654f711a6
Added XML-friendly operator substitution to BeanShell and Groovy. BeanShell already supported operator substitution, but I extended it to convert apostrophes to quotes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772699 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 16:30:02 +00:00
Adrian Crum
3130011465
Added UEL functions to read and write XML files.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772517 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 06:43:53 +00:00
Adrian Crum
ab71e7b7ea
Improved FileUtil.getFile(...) method - now supports component:// paths.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772513 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 06:30:59 +00:00
Scott Gray
b715eb2070
Doubled the size of the log4j event buffer since I regularly suffer from discarded messages
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772502 13f79535-47bb-0310-9956-ffa450edef68
2009-05-07 04:54:49 +00:00
Adrian Crum
28bc332e04
Small change to Scott's UEL improvement - convert NodeList to a java.util.List so that it can be treated like a regular List.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770990 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 22:37:08 +00:00
Adrian Crum
f4b0b4aac9
UEL improvements:
...
1. Implemented operator substitution suggested by Jacopo and Scott. It is a subset of the beanshell operator substitution - http://www.beanshell.org/manual/syntax.html#Document_Friendly_Entities .
2. Added an extension to UEL that permits using variables that might not exist in expressions. Example: The expression ${foo + bar} will throw an exception if either foo or bar don't exist. Assuming foo and bar are both intended to be integers, the expression ${foo$integer + bar$integer} will not throw an exception. Instead, Integer instances (initialized to zero) will be created for the missing variables.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770973 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 18:04:21 +00:00
Scott Gray
2b55fa55da
OFBIZ-2397
...
Implement a custom JUEL ELResolver that handles string properties for objects implementing org.w3c.dom.Node
and org.apache.xerces.dom.NodeImpl. It takes the String and compiles it into an XPathExpression which is
then evaluated against the base Node. The JUEL evaluation returns either null, a single Node or a NodeList
depending on the result of the XPath evaluation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770915 13f79535-47bb-0310-9956-ffa450edef68
2009-05-02 08:45:22 +00:00
Adrian Crum
f44142ffd0
Small fixup for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770749 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 16:47:17 +00:00
Adrian Crum
cc769deb07
UEL functions improvements. Added str:toLowerCase(String) and str:toUpperCase(String) functions. Added a method to the UelFunctions class to make it easier to add built-in functions.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770746 13f79535-47bb-0310-9956-ffa450edef68
2009-05-01 16:31:55 +00:00
Adam Heath
9840b7cc1c
Fix some StringBuffer usage that has crept in.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770030 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 01:22:44 +00:00
Adam Heath
3510f7c574
Fix bad html in javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770029 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 01:21:50 +00:00
Adam Heath
2220cb2419
Remove the Resolving classes; instead, make use of ServiceRegistry,
...
which simplifies the code quite nicely. However, this means that
the system will *not* walk the classpath, converting everything to
a file/jar, and trying to load *all* org.ofbiz.* classes. Instead,
it only will load those classes that have been configured to be
looked at, by way of the services text files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@770025 13f79535-47bb-0310-9956-ffa450edef68
2009-04-30 00:58:04 +00:00
Andrew Zeneski
8293ca3b9a
added method to run script from classpath; added annotations to suppress warnings
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769508 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 19:41:21 +00:00
Jacopo Cappellato
3b7e656368
As suggested by Joe Eckard in the ml, this will fix the barcode rendering that was broken after recent upgrade of FOP.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769500 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 19:04:37 +00:00
Andrew Zeneski
d37f55dba6
added abstract class resolver; this does the dirty work of searching for classes on the classpath
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769474 13f79535-47bb-0310-9956-ffa450edef68
2009-04-28 17:31:38 +00:00
Christian Geisert
f66cfd956a
added missing Jar for FOP (needed for SVG/Barcode generating)
...
Barcode still not working
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@769030 13f79535-47bb-0310-9956-ffa450edef68
2009-04-27 15:42:11 +00:00
Adam Heath
589c319f15
Don't do string addition, especially in a timing function.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768652 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 05:19:45 +00:00
Adrian Crum
619ed2cfc0
Small fixup for previous commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768635 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 03:28:53 +00:00
Adrian Crum
ea2b311338
A bunch of work in UtilXml.java:
...
1. Added methods to support DOM 3. They aren't used right now, but they are available if anyone wants to give it a try. Might be good for XML data exchange with payment processors and such.
2. Added JAXP TrAX methods to help replace deprecated org.apache.xml.* classes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768633 13f79535-47bb-0310-9956-ffa450edef68
2009-04-26 03:19:15 +00:00
Adrian Crum
678db887db
Eliminated unnecessary method by using Apache Commons.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768459 13f79535-47bb-0310-9956-ffa450edef68
2009-04-25 03:41:31 +00:00
Adrian Crum
a334c6d401
Updated Xerces to version 2.9.1. This update will generate some deprecation warnings at compile time. I will be working on updating the framework code to eliminate the warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768339 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 15:55:14 +00:00
Adrian Crum
14b462dc50
Fixed a bug in Label Manager where empty values were not saved properly.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@768123 13f79535-47bb-0310-9956-ffa450edef68
2009-04-24 02:02:40 +00:00
Adrian Crum
84064b8b1c
Small fixup for last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766834 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 19:54:25 +00:00
Adrian Crum
27f82900f8
Fix for UEL expressions where IDs are used for Map keys.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766827 13f79535-47bb-0310-9956-ffa450edef68
2009-04-20 19:36:29 +00:00
Jacques Le Roux
46038493c4
Revert r766443 commited by accident
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766446 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 11:06:54 +00:00
Jacques Le Roux
59dcd48d1b
This was a commit error
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766443 13f79535-47bb-0310-9956-ffa450edef68
2009-04-19 10:27:47 +00:00
Jacques Le Roux
2ca2feef1a
Changes from Erwan de FERRIERES "Upgrade of the fop library (0.94 -> 0.95)" https://issues.apache.org/jira/browse/OFBIZ-2317 - OFBIZ-2317
...
+ LICENCE updated (libraries wiki page also updated)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766125 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 19:42:46 +00:00
Adrian Crum
35b8c43e36
Changes to the UEL classes - should fix the auto-vivify issues. Removed the UEL functions that were a workaround.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764992 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 22:53:59 +00:00
Adrian Crum
b38b6e9199
Small fixup for last commit - made the FlexibleStringExpander code comments more accurate. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764534 13f79535-47bb-0310-9956-ffa450edef68
2009-04-13 17:08:15 +00:00
Adrian Crum
dc1c95d57f
Added expression escaping to FlexibleStringExpander.java, and put some examples in the Example component.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764527 13f79535-47bb-0310-9956-ffa450edef68
2009-04-13 16:56:06 +00:00
Adrian Crum
21ff1c14e9
Updated the JUEL library. Added two UEL functions for handling sequence IDs used as Map keys.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764323 13f79535-47bb-0310-9956-ffa450edef68
2009-04-12 20:39:52 +00:00
Adrian Crum
0638b39c8a
Removed unused/unnecessary classes and methods from framework/base. These were deprecated last November.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764308 13f79535-47bb-0310-9956-ffa450edef68
2009-04-12 18:02:00 +00:00
Jacopo Cappellato
6d29e3fc90
Applied patch from Ashish and Vikas, part of issue OFBIZ-1901 (Class cast exception on doing survey [ take survey ] on Customer Profile).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763915 13f79535-47bb-0310-9956-ffa450edef68
2009-04-10 12:00:09 +00:00