Scott Gray
75e810a2d3
Converted the remaining framework bsh scripts to groovy
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688450 13f79535-47bb-0310-9956-ffa450edef68
2008-08-24 05:36:54 +00:00
Adrian Crum
eff5f89d39
Simplified Scott's FlexibleStringExpander NPE fix and updated the JavaDocs.
...
Many thanks to Scott for catching that, and many thanks to David Jones for his suggestions on the refactor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688348 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 15:56:17 +00:00
Scott Gray
eb425ac447
NPE fix
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688296 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 11:15:23 +00:00
Scott Gray
9b786b8159
Reverted the rest of Si's recent work since it doesn't look like he is going to complete/correct the RequestHandler part any time soon
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688265 13f79535-47bb-0310-9956-ffa450edef68
2008-08-23 06:17:06 +00:00
Adam Heath
839c7b6827
Stop deprecation warnings about ByteWrapper.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688220 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 23:02:17 +00:00
Scott Gray
a3cb1fb0b6
Recommitting r687578, changed slightly to follow Adam's lead
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688212 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 22:53:40 +00:00
Jacques Le Roux
3d050bde89
A couple of i18n and l10n stuff
...
Following Bilgin's recommendation, I almost successfully tested the iterate-section i18n using [<iterate-section entry-name="ownedFinAccount"...].
Almost, since I was unable to find the right paginate-target value as it's not a screen or a form but a screenlet.
Should we create an entry in the controller in such case? And if it's the case how, what to do ? In other words how do we call a screenlet ?
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688167 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 18:23:42 +00:00
Adam Heath
06b236adae
Fix breakage with IN type operations.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687936 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 04:00:57 +00:00
Scott Gray
64c7041d3f
Reverted 687578, which will at least take the problem back to a minor bug rather than a major one, sorry everyone
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687918 13f79535-47bb-0310-9956-ffa450edef68
2008-08-22 01:09:14 +00:00
Adrian Crum
3ac5d11bb9
Added some synchronization code to FlexibleStringExpander.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687900 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 23:34:59 +00:00
Adrian Crum
65d194a557
Changed UtilObject.getByteCount(Object obj) exception handling to log verbose, since exceptions are regularly thrown and they were clogging up the console log.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687884 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 22:31:58 +00:00
Adrian Crum
4172761060
More FlexibleMapAccessor.java fixups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687842 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 20:09:48 +00:00
Hans Bakker
dacfc87aa2
email poller seems to stop polling without notice...change log severity level
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687693 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 10:25:02 +00:00
Jacques Le Roux
750584e325
A patch from Bilgin Ibryam on dev ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687675 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 09:49:36 +00:00
Jacques Le Roux
a4f59ca86a
A patch from Luke Prentice "Sort related entities in ViewGeneric" ( https://issues.apache.org/jira/browse/OFBIZ-1921 ) - OFBIZ-1921
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687614 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 07:43:51 +00:00
Scott Gray
fd0e5ee7c0
Reverted some of the recent generics work which seems to be causing the issues reported in the user mailing lists by BJ Freeman and Sharan Foga.
...
Adam, it would be great if you could take another look at this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687578 13f79535-47bb-0310-9956-ffa450edef68
2008-08-21 06:31:02 +00:00
Adrian Crum
df34ed93d5
A small tweak of the FlexibleStringExpander.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687500 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 23:12:39 +00:00
Adrian Crum
3aa803f9bc
Small fix for UtilObject. The getByteCount(Object obj) method was returning unusual results for non-serializable objects. I also added an explanatory note in the JavaDoc.
...
An interesting article on getting the size of Java objects - http://www.javaworld.com/javaworld/javaqa/2003-12/02-qa-1226-sizeof.html?page=1 .
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687473 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 21:33:52 +00:00
Adrian Crum
ead3169d5c
FlexibleStringExpander refactor.
...
1. Improved parsing logic - the entire expression is pre-parsed now.
2. Factory method stores parsed expressions in the cache.
3. Single null/empty expression instance - saves on memory.
4. Class names and variable names shortened to reduce object size.
5. Small performance improvements.
The expression cache is set up with no limit. We'll have to see if that needs to be changed. Larger installations might need to limit the expression cache size.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@687422 13f79535-47bb-0310-9956-ffa450edef68
2008-08-20 18:50:04 +00:00
Adam Heath
c3054529c9
Allow joining of any item, not just string.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686845 13f79535-47bb-0310-9956-ffa450edef68
2008-08-18 18:51:08 +00:00
Scott Gray
3c0f8adf85
typo
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686695 13f79535-47bb-0310-9956-ffa450edef68
2008-08-18 08:29:28 +00:00
Adrian Crum
f7ab19876b
Removed availableLocales and availableTimeZones from screen rendering context - they are not needed anymore. Also deleted an unused ftl file.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686622 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 16:37:42 +00:00
Jacques Le Roux
e7905f2c8c
Fix the anti-pattern
...
if (* != null && *.size() > 0) {
where * is a variable name (String or Collection). Rewritten to
if (UtilValidate.isNotEmpty(*)) {
Done with Eclipse regex replace feature with
search = if \((\w+) *!= *null *&& *(\w+)\.size\(\) *> *0\) *\{
replace = if (UtilValidate.isNotEmpty($1)) {
And of course some hand-work for imports and cleaning. I compiled and tested with ant run-tests
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686591 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 07:47:18 +00:00
Scott Gray
c98e7dc59f
Removed unnecessary "error" response elements from the controller files, if no event is defined then "success" will always be the response name.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686577 13f79535-47bb-0310-9956-ffa450edef68
2008-08-17 00:00:49 +00:00
Adrian Crum
adc1d1d145
Collapsible masthead, based upon a patch provided by Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-1919 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686515 13f79535-47bb-0310-9956-ffa450edef68
2008-08-16 15:52:47 +00:00
Si Chen
c22c243cb9
reverted last commit
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686356 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 20:20:34 +00:00
Si Chen
a00fc0f160
more comments on OFBIZ-1915
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686311 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 18:32:58 +00:00
Si Chen
e5451f7f18
OFBIZ-1915 from Jeremy Wickersheimer for request-redirect-filter-param
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686301 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 18:15:39 +00:00
Adam Heath
a9084a6f0d
Add license header.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686256 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 15:41:20 +00:00
Adam Heath
fe7cddc3a2
More use of ServiceRegistry.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686251 13f79535-47bb-0310-9956-ffa450edef68
2008-08-15 15:29:29 +00:00
Andrew Zeneski
dae87c2e67
appears the the <include> sub-element cannot contain a list, instead each one needs to be named. Changed so that the properties are included again.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@686027 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 20:41:34 +00:00
Adrian Crum
89245c4d92
Better handling of the masthead logo image link.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685969 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 17:33:29 +00:00
Adam Heath
963b50cc44
Bah, bad doogie, bad. Always at least *compile* your changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685964 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 17:16:42 +00:00
Adam Heath
851c88ea77
User agent and referer were star-crossed lovers. Now they have gone
...
out on their own.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685962 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 17:12:01 +00:00
Adam Heath
e410552cc9
No longer *copy* the extra support files into the classes dir;
...
instead, just add them straight to the final jar.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685934 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 15:08:14 +00:00
Adam Heath
8328cfc565
Don't make base/start subdirs in build/classes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685783 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 06:16:19 +00:00
Adam Heath
1dfdb73a7a
Add the standard license header.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685782 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 06:15:53 +00:00
Adam Heath
8caa026db8
Use a factory pattern to load available MethodOperation
...
implementations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685778 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 05:55:17 +00:00
Jacques Le Roux
0df3e54285
One i18n and some French l10n
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685753 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 02:57:39 +00:00
Hans Bakker
1dc53d1a0e
added security, also added the possibility for custumers to see their entered requests under the new security rules, added demo data to test all this
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685746 13f79535-47bb-0310-9956-ffa450edef68
2008-08-14 01:56:28 +00:00
Adrian Crum
67eecf7569
Small change to user preferences. The getUserPreferenceGroup service will simply retrieve default values instead of copying them to the user's preferences. This should help reduce the amount of data generated.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685588 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 15:44:16 +00:00
Jacques Le Roux
cf7ce5e414
French translation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685474 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 07:57:06 +00:00
Adam Heath
fdd61ca101
Start using annotations; this will make more sense in the next few
...
days.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685447 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 05:23:26 +00:00
Hans Bakker
f97d937600
improved error message on suggestion of other committers
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685395 13f79535-47bb-0310-9956-ffa450edef68
2008-08-13 00:13:08 +00:00
Jacques Le Roux
03b1e78897
In some cases it case matrix cases were not enough high, in French for instance
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685128 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 12:27:11 +00:00
Jacques Le Roux
df7903c723
Better French translation
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685125 13f79535-47bb-0310-9956-ffa450edef68
2008-08-12 12:01:20 +00:00
Adrian Crum
bd18bcae69
More CSS, HTML cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684565 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 18:06:00 +00:00
Adrian Crum
cd3a137731
Removed deprecated CSS style sepBar, removed unnecessary align="left" HTML element attributes.
...
I did a global search and replace for the align="left" aatribute - I didn't check each replacement because there were hundreds of them. This shouldn't break any layout. If you spot something wrong, post a message on the dev mailing list and I will fix it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684548 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 16:28:14 +00:00
Adam Heath
2617681b51
Remove svn:executable on a bunch of stuff.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684389 13f79535-47bb-0310-9956-ffa450edef68
2008-08-10 00:53:43 +00:00
Adam Heath
7f61d043c1
Few more generics things.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@684378 13f79535-47bb-0310-9956-ffa450edef68
2008-08-09 23:54:33 +00:00