Adam Heath
579ff51707
SequenceBank no longer stores the bankSize.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922730 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:20:17 +00:00
Adam Heath
1647601757
SequenceBank no longer maintains a duplicate reference to SequenceUtil.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922729 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:19:44 +00:00
Adam Heath
23abe54e4e
SequenceUtil no longer stores a reference to the ModelEntity at all.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922728 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:19:16 +00:00
Adam Heath
be1f4c329c
SequenceBank no longer uses ModelEntity at all.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922725 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:18:42 +00:00
Adam Heath
795b0cdbab
Remove use of ModelEntity from fillBank.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922724 13f79535-47bb-0310-9956-ffa450edef68
2010-03-14 02:18:10 +00:00
Adam Heath
8ccf42e1dd
Fix bad caching. Previously, any call to getDelegator() would *always*
...
walk the entire classpath, trying to find all implementations of
DelegatorFactory. This was fixed by moving the cache higher up.
In detail, the entity caching system only stored a String delegator
name. It would then try to find the appropriate delegator to match that
name. However, during a custom importer, the caching system was being
exercised very heavily, so DelegatorFactory.getDelegator() was being
called in a very tight loop. Since the delegator instances were not
being cached at the high level, this caused a *big* slowdown; basically,
a 15 minute importer was taking over 2 hours, and was no near finishing.
This was because UtilObject.getObjectFromFactory would end up walking
the entire classpath, finding every jar, looking at every zip entry, to
try and find the appropriate file in META-INF/services.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921990 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:59:34 +00:00
Adam Heath
a68617c9ad
Pass the delegator into any create/init methods that end up setting any
...
field data.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921989 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:58:13 +00:00
Adam Heath
b4651644c8
Don't fetch the delegator with UtilObject, instead using
...
DelegatorFactory.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921987 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:57:33 +00:00
Adam Heath
9bcda83ad7
Remove runtime/logs/cobertura-report.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921984 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 18:55:50 +00:00
Jacques Le Roux
9652e69f8f
Allow double quote in title. This is possible because, at least OOTB, all title should be localized. Hence from a label in an XML file, and nothing prevent to use double quotes there
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921773 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 10:17:15 +00:00
Jacques Le Roux
a7a09a0817
As suggested by Adam and Scott move the encodeQuotes static method (actually renamed encodeDoubleQuotes) from UtilHttp to FreeMarkerWorker
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921714 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 07:57:27 +00:00
Jacques Le Roux
ca38a526fa
Following r921421, here is the right and simplest solution (KISS way).
...
Simply encoding the tooltip (why I did not think about that before, really sometimes I wonder how my brain is working, I need to stop working for it to begin to work)
There are no needs to encode char like >, but of course < is needed (in he XML file) since else there is a problem in the XML labels file (always the same issue: around vs inside)
So yes, it's only a matter of encoding at the right place, ie before the "around vs inside" issue arises
Good night ;)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921643 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 00:20:57 +00:00
Adrian Crum
615c3d83d1
Revert rev 902341 - which seemed to cause problems with the Derby database.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921455 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 17:11:18 +00:00
Jacques Le Roux
248b851c03
Better explanation of lookup fields
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921432 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 16:23:29 +00:00
Jacques Le Roux
be7c45c096
You can't use double quote in tooltips. I tried to find a quick way to allow this in MacroFormRenderer.appendTooltip() but gave up, too narrow need.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921421 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 16:12:30 +00:00
Jacques Le Roux
9fbb7f392c
Fix a small encoding bug found in Example Widget form
...
Set default values for fields 4&5 (time dropdowns)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921401 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 15:29:44 +00:00
Jacopo Cappellato
0e57369c97
Reverted rev. 920359 (by erwan) and reimplemented in a cleaner way by refactoring the renderHyperlinkTitle code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921397 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 15:21:23 +00:00
Jacopo Cappellato
32aa30cfcb
Minor code simplification: no functional changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921305 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 11:15:30 +00:00
Erwan de Ferrieres
dbc53a2fb8
html string encoding for alternate and description tags on image field
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921287 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 10:24:33 +00:00
Erwan de Ferrieres
80b67af4e4
Correcting a wrong macro name (missing letter)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921109 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 20:32:47 +00:00
Erwan de Ferrieres
060a8e14de
Adding missing tags in r920770 as spotted on the dev mailing list in the *FormMacroLibrary.ftl files
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921099 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 20:22:35 +00:00
Adam Heath
745fab7188
Make the protected static methods public.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921089 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 19:58:36 +00:00
Adam Heath
6122265c29
s/ServiceRegistry/ServiceLoader/
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921085 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 19:52:50 +00:00
Erwan de Ferrieres
245534d516
Adding description and alternate text on a field type="image"
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920770 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 10:18:54 +00:00
Scott Gray
eb147d0326
Fix a problem reported by Hans Bakker, FreeMarker templates loaded using the Configuration object don't have access to the component:// notation reader and this causes them to fail because all templates now attempt to retrieve the html form macro library using that notation. This is a quick fix but we should really fix the FreeMarkerViewHandler to load templates via the FreeMarkerWorker.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920589 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 00:27:19 +00:00
Scott Gray
42cffa5c24
[CVE-2010-0432] Multiple fixes to the macro and html form widget renderers to ensure that all output is encoded when necessary.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920372 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 16:05:24 +00:00
Scott Gray
f507fad221
[CVE-2010-0432] Properly encode any error messages before attempting to write them to the response. I'm doing it here to avoid having to do the encoding within each app's error.jsp file, I think this should be fine though.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920371 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 16:05:19 +00:00
Scott Gray
4d14316c52
[CVE-2010-0432] Added an OFBiz specific FreeMarker TemplateExceptionHandler, ensures that any stack trace error messages are properly encoded before being dumped to the browser (or anywhere else).
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920370 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 16:05:14 +00:00
Scott Gray
8d2545c68e
[CVE-2010-0432] Menu widget links of type hidden-form were not correctly encoding the value attribute.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920369 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 16:05:09 +00:00
Erwan de Ferrieres
84c5f1b037
When making CSV or PDF exports, and having sort-field as table headers, the descriptions weren't displayed in the exported documents.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920359 13f79535-47bb-0310-9956-ffa450edef68
2010-03-08 15:36:04 +00:00
Bruno Busco
0366de6c62
Starting to use the widget macros in FTL files.
...
Part of OFBIZ-3541
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920117 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 21:17:54 +00:00
Bruno Busco
ef3857b87e
Added parameter default values to renderLookupField and renderNextPrev macros.
...
This allows to call the macro in the FTL files without specifying all the parameters.
Part of OFBIZ-3541
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920116 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 21:15:36 +00:00
Bruno Busco
458e17a104
The widgets macros are now usable in the FTL files also.
...
Using these macros in FTL should improve code reuse and avoid having different HTML between widgets based screens and FTL based ones.
This has been developed in OFBIZ-3541.
Thank you Bilgin and Jacques for reviewing and improving the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920115 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 21:11:16 +00:00
Jacques Le Roux
9014106755
A modified patch from Sascha Rodekamp "Some improvements for the layer lookup" ( https://issues.apache.org/jira/browse/OFBIZ-3524 ) - OFBIZ-3524
...
A little fix for the faded background and make fading as default.
I have also refactored a bit the lookups examples fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920061 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 19:23:42 +00:00
Bilgin Ismet Ibryam
964bd5fee5
Removed label for geoId ENG, because there is no such an entry. Fix label for geoId ENGL
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920050 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 18:08:17 +00:00
Erwan de Ferrieres
71ab704a96
Adding missing French translation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@920019 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 15:37:14 +00:00
Jacopo Cappellato
1a3a99c892
Improved template code for menu setup; thanks to Chris Snow for the patch (OFBIZ-3539)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@919425 13f79535-47bb-0310-9956-ffa450edef68
2010-03-05 14:09:40 +00:00
David E. Jones
39484e52d2
A better approach for this condition, it isn't just the COUNT function we want to look for, it is ANY function; a reminder for those using this: put the unique field first
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918910 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 09:24:30 +00:00
David E. Jones
745e671051
Added back code similar to code before to use selected values in a count instead of ignoring them, which is necessary to get a distinct count when you are not selecting all fields/columns; now looks for the SQL generated with the function=count-distinct stuff is used so that it will function the old way and not include the column name at all, so hopefully that will take care of that problem while fixing the main bug of ignoring the selected fields set
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918903 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 09:03:46 +00:00
Scott Gray
f55d6f8fe4
Added missing svn props, no code changes
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918840 13f79535-47bb-0310-9956-ffa450edef68
2010-03-04 03:37:57 +00:00
Adam Heath
7fc0f4cfdd
Remove a bunch of static variables, instead using an AtomicReference and
...
an instance of EntityConfigUtil to manage everything.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918734 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:15:01 +00:00
Adam Heath
ce2d761f51
Bad formatting, { shouldn't be on a line by itself.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918732 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:14:28 +00:00
Adam Heath
083663f6a4
Make use of FastMap's putIfAbsent, and remove an instance of
...
double-checked-locking.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918731 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:13:52 +00:00
Adam Heath
b2ca928774
Remove unnecessary cast when getting from genericDAOs cache.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918729 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:13:25 +00:00
Adam Heath
9627cbc06c
Implement proper non-blocking access.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918728 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:12:58 +00:00
Adam Heath
b80b40b6d3
For internal classes, you don't need to prefix with the containing
...
class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918727 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:12:31 +00:00
Adam Heath
4a52467763
Make all the internal variables private and/or final.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918726 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:12:03 +00:00
Adam Heath
76b4cfb1ac
Make all the protected fields private and final.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918725 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:11:35 +00:00
Adam Heath
b289b45142
Move the test case for ComparableRange to the correct package.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918724 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:10:52 +00:00
Adam Heath
503c5f9795
Remove javadoc from protected methods.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918723 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 22:10:11 +00:00