Commit Graph
630 Commits
Author SHA1 Message Date
Scott Gray dec24b29f2 Sorry for the big commit, got a bit carried away.
Added override and deprecated annotations wherever they were missing
Removed the use of any deprecated classes/methods (except OutputFormat in UtilXml)
A few other random generics and misc. cleanups

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@791212 13f79535-47bb-0310-9956-ffa450edef68
2009-07-05 10:01:19 +00:00
Adrian Crum 7d300cecc0 Added a UEL function to convert a DOM Node to an HTML String.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@790420 13f79535-47bb-0310-9956-ffa450edef68
2009-07-01 23:28:55 +00:00
Adrian Crum f83c020c1b Code cleanup and bug fixes in WebDAV and iCalendar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789871 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 18:46:10 +00:00
Adam Heath 04c6a9b2b1 New upstream; fixes line numbers in wrap, and improves the css rules
matching.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789866 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 18:31:12 +00:00
Adrian Crum 67ee5db3c0 Oops, forgot something.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789835 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 17:21:15 +00:00
Adrian Crum ddf6086b2f Code cleanup in UtilXml.java - eliminated some redundant methods. Document, DocumentFragment, and Element all extend the Node interface, so we only need one method that accepts a Node argument.
This change is completely backwards compatible.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789830 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30 17:07:07 +00:00
Adam Heath 91130de63f Add readXmlDocument variants that can store the line/column numbers
of elements; nothing uses this yet.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789401 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:15:14 +00:00
Adam Heath dd51c0108b Add a simple initCause helper method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789400 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 18:13:19 +00:00
David E. Jones a1b519b5fa Small change to allow the span tag in safe html
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@789233 13f79535-47bb-0310-9956-ffa450edef68
2009-06-29 06:49:44 +00:00
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