Commit Graph
2421 Commits
Author SHA1 Message Date
Adam Heath 3bf2c24c1c Egg on face, need to be more careful with undoing changes that aren't
ready to be commited.  This actually compiles now. :|

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788176 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 20:39:32 +00:00
Adam Heath 69da3c66d7 Helper method for getting an attribute from an element, with default
value processing.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788175 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24 20:37:23 +00:00
Scott Gray 2676632af8 Removed unused import and added some generics
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@787655 13f79535-47bb-0310-9956-ffa450edef68
2009-06-23 12:15:20 +00:00
Anil Patel c4224f5983 Part of code from OFBIZ-2627. Thanks.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@786400 13f79535-47bb-0310-9956-ffa450edef68
2009-06-19 07:34:06 +00:00
Adrian Crum 361e4bef0e Minor change to UtilXml.java DOM 3 method signature. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@786117 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18 15:17:22 +00:00
Hans Bakker 7f02d99bb3 correction on revision 783603 as suggested by Adrian, no functional change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@784399 13f79535-47bb-0310-9956-ffa450edef68
2009-06-13 14:32:25 +00:00
Jacques Le Roux 34cfcf2d60 Everybody agreed that it's simpler to use false than to explain ftrue...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783905 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 21:08:16 +00:00
Hans Bakker 84c30dd1a7 make the party viewprofile request also working when only an emailaddress or telephone number is provided. usefull when this url is called from other webbased systems.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783603 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11 02:14:32 +00:00
Adam Heath 03b030b475 Yet another update. Very very close. Hunting rabbits.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783564 13f79535-47bb-0310-9956-ffa450edef68
2009-06-10 23:00:26 +00:00
Adam Heath 783130b58d Add ability for simple methods to be wrapped with a custom compiled
class.  The resource location from where the simple method was read
is encoded as the classname of the proxy.  This makes debugging
simpler to do.  This feature is turned off by default.

The wrapping code has support for setting the line number, to include
in stack traces.  However, DOM-based xml parsing doesn't record line
numbers, so it's not possible to encode that into the wrapped proxy
class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783060 13f79535-47bb-0310-9956-ffa450edef68
2009-06-09 16:19:50 +00:00
Adam Heath 22adfe3826 Upgrade to a newer groovy.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@783054 13f79535-47bb-0310-9956-ffa450edef68
2009-06-09 16:10:53 +00:00
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