Commit Graph
10472 Commits
Author SHA1 Message Date
Adam Heath 36bed586b9 Add support for several count function variants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949599 13f79535-47bb-0310-9956-ffa450edef68
2010-05-30 22:06:11 +00:00
Jacques Le Roux f8699d535d A patch from Atul Vani for an issue reported by Soumya Jyoti Guru at http://markmail.org/message/whb4am3n6ngsuwgk. It's related to https://issues.apache.org/jira/browse/OFBIZ-3667 - OFBIZ-3667
Atul's note: I noticed some strange behavior (like there's little shifting of elements).
Jacques's note: I noticed them too (it's in the calling form or layer) but it's far better than before and IMO acceptable

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949174 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 13:27:36 +00:00
Jacques Le Roux 47b0020afe A patch from Ankit Jain, removes useless redundant <request-map uri="authview">, it's now in the common controller(https://issues.apache.org/jira/browse/OFBIZ-3469) - OFBIZ-3469
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949142 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 10:30:46 +00:00
Jacques Le Roux 6193dd4e53 <author>None</author> is totally useless and we don't need an author OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949101 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:41:23 +00:00
Jacques Le Roux eccde35aa0 Do we really need to have an <owner> element there? At least OOTB it's always empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949100 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:38:25 +00:00
Scott Gray e5551546f0 Be a little more explicit about what didn't return success when a preprocessor event fails
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949088 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 03:30:47 +00:00
Jacques Le Roux 63fd94e778 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux 2a1a5aee14 We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Jacques Le Roux c1e14e1a35 A patch from Sascha Rodekamp "Identifying the website id" (https://issues.apache.org/jira/browse/OFBIZ-3784) - OFBIZ-3784
Sascha : here is a little patch to improve the identification of the websites. The original method seems a little bit bare.
Jacques: I can't see any problems with this improvement, though I did not test all cases



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948761 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 10:23:30 +00:00
David E. Jones 0c3b76171d Added removeUserPreference service, needed because you can't pass an empty value to the set service to clear out preferences, also this actually removes the record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948697 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 07:18:59 +00:00
Jacques Le Roux c974d3224e A patch from Sascha Rodekamp "The position attribute (at least center) does not work when used in a lookup called from another lookup " (https://issues.apache.org/jira/browse/OFBIZ-3781) - OFBIZ-3781
Here is a little patch to fix the center issue. I had to remove some code which is not needed anymore.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948694 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 07:07:05 +00:00
Erwan de Ferrieres f9c4de5efc Avoiding possible errors when adding portlets via web interface and logged as admin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948479 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 15:47:47 +00:00
Jacques Le Roux 52520adaab Clean imports, I also wondered if we should keep addAllFileTableValues which is not used internally (hence I guess useless) but I finally stopped as there were also some other Type Safety warnings and I did not have time to continue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948460 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:48:00 +00:00
Adam Heath 6e07055341 Re-apply 948328, which brings us back to using the more efficient clhm,
but now UtilCache is not strictly least-recently-used.  Instead, it's
more of a less-recently-used.  This difference can be seen when reducing
the max-in-memory setting(but not reducing completely to 0).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948449 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:23:11 +00:00
Adam Heath 39faca3863 Allow for dynamic registering of additional operators for extensions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948448 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:23:03 +00:00
Adam Heath 14b1bc46a7 Remove unneeded cast.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948447 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:57 +00:00
Adam Heath 6a9efe212d Remove synchronized on masterClassManagers, switching to
FastMap(non-blocking).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948446 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:51 +00:00
Adam Heath c2a39dcb52 Remove synchronized on staticTimers access(non-blocking).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948444 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:46 +00:00
Adam Heath 3ffebd5910 Always set memberModelEntities; there's no reason to check for null, as
the population methods always get called during construction anways.
This was discovered while looking at code coverage.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948443 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:40 +00:00
Adam Heath b861401e71 Fix view entities that have view entities as members, with complex aliases, or functions on the nested view.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948442 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:34 +00:00
Adam Heath 4488c44a32 Add support for UPPER and LOWER functions in index fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948440 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:21 +00:00
Adam Heath 9ea996dcb8 There is no reason to convert the controller xml url to a file first.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948439 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 14:22:14 +00:00
Adam Heath d945ef3d65 Add putIfAbsent method; disk-based variant of this method is not yet
tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948333 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:59 +00:00
Adam Heath 464c710f02 JDBM isn't multi-thread safe, so protect against concurrent access.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948332 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:52 +00:00
Adam Heath bb2d32984f Inline postRemove, it's only called from one place.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948331 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 06:04:45 +00:00
Adam Heath 95e6fc9f7d Revert "As suggested by Ben Manes at "Upgrade ConcurrentLinkedHashMap" (https://issues.apache.org/jira/browse/OFBIZ-3779) - OFBIZ-3779"
The new library does *not* function correctly.  It breaks the
testChangeMemSize test case.  Reducing the memory size *must* still obey
the LRU settings; the new library removes items at random.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948328 13f79535-47bb-0310-9956-ffa450edef68
2010-05-26 05:52:11 +00:00
Jacques Le Roux 7aaf80b6c2 Fix a bug introduced while updating ConcurrentLinkedHashMap implementation at r947993. Reported by Christian on dev ML.
I used the default Weigher (see JavaDoc)

BTW this new implementation is really faster (tried with ArtifactInfo)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948037 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 13:38:39 +00:00
Jacques Le Roux 8a9c6ea716 As suggested by Ben Manes at "Upgrade ConcurrentLinkedHashMap" (https://issues.apache.org/jira/browse/OFBIZ-3779) - OFBIZ-3779
The UtilCache class should use v1.0 of the CLHM library. While the previous version is fully functional, I am no longer supporting it. The new design should be faster and more reliable due to not needing to use a pseudo LRU algorithm for performance (which has degradation scenarios). A true LRU is now supported with no lock contention issues. Please consider upgrading when convenient.

http://code.google.com/p/concurrentlinkedhashmap/

JavaDoc:
http://concurrentlinkedhashmap.googlecode.com/svn/wiki/release-1.0-LRU/index.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947993 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 10:08:04 +00:00
Jacques Le Roux f59221875d Fix a bug due to multi-tenant introduction. I guess this bug appears only if you use the multi-tenant mode.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947988 13f79535-47bb-0310-9956-ffa450edef68
2010-05-25 09:53:56 +00:00
Erwan de Ferrieres 002a8ed79f Adding generic service messages for error/succes, so any service could use them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947611 13f79535-47bb-0310-9956-ffa450edef68
2010-05-24 11:50:10 +00:00
Erwan de Ferrieres ee7d17c8cd Better French uiLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947506 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 22:08:00 +00:00
Jacques Le Roux b76b4f3808 A patch from Sascha Rodekamp " Calendar Don't open in Lookups" (https://issues.apache.org/jira/browse/OFBIZ-3780) - OFBIZ-3780
After all the last Patches the calendar didn't opened in the lookups ... But here is the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947424 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 15:08:57 +00:00
Jacques Le Roux 14adf43d86 * Especially fix a bug in fieldlookup.js.
When using description-field-name in a layered lookup called from another layered lookup (recursively or not) the description-field-name parameter (target2) in the call from the 2d lookup button was not modified, therefore the link was not working.

Miscellaneous:
* Format and fix some typos in fieldlookup.js
* Removes now useless commented out functions set_value and set_values in lookup.ftl
* Improves comments in FormWidgetExampleForms.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947392 13f79535-47bb-0310-9956-ffa450edef68
2010-05-23 10:08:21 +00:00
Jacques Le Roux 1105653227 Add documentation to description-field-name attribute in lookup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947005 13f79535-47bb-0310-9956-ffa450edef68
2010-05-21 13:44:41 +00:00
Jacques Le Roux ed4edcb32e A patch from Sascha Rodekamp fix an issue with layered lookups call recursively in IE (see https://issues.apache.org/jira/browse/OFBIZ-3450) - OFBIZ-3450
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@947004 13f79535-47bb-0310-9956-ffa450edef68
2010-05-21 13:42:45 +00:00
Hans Bakker 4ed7d3a044 fix a chart problem when a newer birt version in eclipse is used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946940 13f79535-47bb-0310-9956-ffa450edef68
2010-05-21 09:18:30 +00:00
Jacques Le Roux 3334d58ec8 A patch from Sascha Rodekamp "When you get disconnected (time out) from a layered lookup, you then get afterward ugly screens" https://issues.apache.org/jira/browse/OFBIZ-3450 - OFBIZ-3450
Fixes: when user session is destroyed: Log into an application (accounting for example) and select a form - layered lookups work correct. In another tab log into another application and then log out. Then on the first tab (accounting) try to use a lookup. In the lookup screen you will get the login screen (that's OK) but once you enter your username and password you get a blank screen.

Another issue related to external key is still existing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946596 13f79535-47bb-0310-9956-ffa450edef68
2010-05-20 11:47:30 +00:00
David E. Jones 5b7c6b73c2 Small change so that the lookup->target-parameter attribute is supported when also using the lookup->description-field-name
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946593 13f79535-47bb-0310-9956-ffa450edef68
2010-05-20 11:27:16 +00:00
Erwan de Ferrieres 962c6f3ccc udpating derby version to 10.6.1.0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946556 13f79535-47bb-0310-9956-ffa450edef68
2010-05-20 07:48:15 +00:00
Adrian Crum b832282533 Updated model widgets to eliminate calls to methods deprecated in previous commit. Widget comment state is stored in the renderer, not in the model. All widget comments work properly now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946431 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 21:57:18 +00:00
Adrian Crum 16929cabeb Small change to ModelWidget.widgetBoundaryCommentsEnabled method - added ability to pass the rendering context in addition to the request parameters, plus I fixed the logic so it works the way it was originally intended.
To summarize:

1. The widget.verbose property in widget.properties is the global default setting.
2. The setting can be changed at the application level by putting the widgetVerbose parameter in the web.xml file.
3. The setting can be changed at the widget level by putting the widgetVerbose variable in the rendering context.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946384 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 20:49:06 +00:00
Adrian Crum 30a5cffa2c Moved 4 methods from ModelWidget to WidgetWorker and made them static. ModelWidget is supposed to be nothing more than a super class for the model widget classes, but it was starting to look like a "catch-all" or utility class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946298 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 17:38:08 +00:00
Adrian Crum f44fb0e298 Reverting 946262 and 946264. The changes compiled okay, but they wouldn't run.
I'm going to take a different approach in a future commit.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946286 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 17:08:39 +00:00
Adrian Crum 0121b2bab3 Deprecated some methods in ModelWidget.java that are not thread-safe. Plus, the implementation of widget comments was flawed. Widget comments can be enabled/disabled on a per-request basis, but the setting was saved on a per-widget basis.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946270 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 16:50:27 +00:00
Adrian Crum aea89155d3 Changed two more ModelWidget.java methods to static.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946264 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 16:36:58 +00:00
Adrian Crum 1598bfb858 Changed two ModelWidget.java methods to static.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946262 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 16:30:06 +00:00
Jacques Le Roux fda988d301 Closes "Allow to open a layer lookup from a layer lookup recursively" (https://issues.apache.org/jira/browse/OFBIZ-3693) - OFBIZ-3693
This commit removes all remaining <presentation="window">

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946073 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 07:36:02 +00:00
Jacques Le Roux bcff9669d5 A patch from Atul Vani (modified from a Sascha Rodekamp's patch) "Allow to open a layer lookup from a layer lookup recursively" (https://issues.apache.org/jira/browse/OFBIZ-3693) - OFBIZ-3693
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@946061 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 07:26:08 +00:00
Erwan de Ferrieres 1769a48bb1 Missing screen when using the portal admin in webtools
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945728 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 16:10:10 +00:00
Erwan de Ferrieres 9e7053e953 XHTML validation errors round 2++ (framework) - OFBIZ-3761 (https://issues.apache.org/jira/browse/OFBIZ-3761)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945582 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 10:34:42 +00:00