David E. Jones
75c26763e5
Fairly significant update to correct a long-standing problem; reverted ByteWrapper back for backward compatibility, and then replaced all use of ByteWrapper with java.nio.ByteBuffer; the main point is to both store only the byte[] data in the database and not a serialized object containing the byte[], and at the same time be able to read the old ByteWrapper objects, and there is a service to read and update all old data to be plan bytes instead of wrapped in a serialized object; this includes changing the java-type for blob fields to be java.sql.Blob to greater compatibility and flexibility, ie you can either set a plain byte[] or you can pass in a Blob object to be persisted, you can also get both as get returns java.sql.Blob, but getBytes always returns the byte[], converting as needed; this is tested a fair amount, but obviously needs to be watched as it is new code
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587433 13f79535-47bb-0310-9956-ffa450edef68
2007-10-23 09:52:49 +00:00
Adrian Crum
6756832fda
RTL layout fixups.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587280 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 23:09:43 +00:00
Andrew Zeneski
1a9a856053
small change to allow ofbiz to compile again
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587109 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 14:23:48 +00:00
Andrew Zeneski
e513361155
clean output no longer deletes the directory; instead now it cleans it out (since it is under version control)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@587096 13f79535-47bb-0310-9956-ffa450edef68
2007-10-22 13:51:25 +00:00
Adam Heath
6b3382e72e
Collection size can not be negative.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586966 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 23:02:11 +00:00
Adam Heath
759fc3cd6c
Undo revision 586470; I missed a spot in checkAuth that changed
...
the context, after a call to makeValid.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586938 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 19:13:06 +00:00
Adam Heath
9aed331614
Remove 2-arg vararg variants; beanshell doesn't handle overridden
...
methods correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586924 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 18:18:11 +00:00
Andrew Zeneski
6981950040
updated build files to clean output directory and test-results; removed depends="" (empty depends)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586923 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 17:56:04 +00:00
Adam Heath
af0d38ddbc
Turn on unchecked warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586857 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:09:55 +00:00
Adam Heath
f1a750a4ce
The last of the java 1.5 markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586856 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:08:17 +00:00
Adam Heath
65fee88f24
All error message lists and maps are now make use of java 1.5
...
features.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586855 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:06:00 +00:00
Adam Heath
77b1dae239
Another set of internal java 1.5 markup changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586854 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:04:22 +00:00
Adam Heath
b12475b471
java 1.5 markup for internal code/methods/fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586853 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:02:48 +00:00
Adam Heath
2c038c9407
Another set of java 1.5 changes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586852 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 04:00:41 +00:00
Adam Heath
8223e66e22
getLocalServiceMap/getGlobalServiceMap are generified, so modify the
...
internal callers to take advantage of that.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586851 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:57:48 +00:00
Adam Heath
6800519f7e
ServiceDispatcher.runLog now has generics markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586850 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:55:49 +00:00
Adam Heath
ef4d4cde1b
Don't instantiate new java.lang.Number instances.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586849 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:53:56 +00:00
Adam Heath
f107f75aed
All things delegator/entity are now generified.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586848 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:52:32 +00:00
Adam Heath
9b0735ce53
Use ComponentConfig generics.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586847 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:50:49 +00:00
Adam Heath
cc9d9de222
Made UtilXml generics usage.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586845 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:41:47 +00:00
Adam Heath
9342c80521
The internal serviceInvoker methods were returning map in all cases.
...
So, change the return type to match.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586839 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:11:39 +00:00
Adam Heath
a751352f92
Don't use string addition.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586835 13f79535-47bb-0310-9956-ffa450edef68
2007-10-21 03:08:06 +00:00
Jacques Le Roux
ae76370a04
Replace all www.ofbiz.org by ofbiz.apache.org (mostly links to dtds). Note that there are 2 void links :
...
http://ofbiz.apache.org/service/
http://ofbiz.apache.org/cgi-bin/http_test.pl
Those links were useless before also
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586802 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 21:17:45 +00:00
Jacopo Cappellato
e37974e322
Applied (slightli different version od) patch from Marco Risaliti (OFBIZ-1355) to fix the ugly layout for empty cells in IE.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586690 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 09:45:50 +00:00
Andrew Zeneski
d04c0e7522
changed connection pool to be DBCP by default now
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586666 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 04:47:11 +00:00
Adam Heath
8a1a1ecb52
allowCallbacks() was generified too early.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586660 13f79535-47bb-0310-9956-ffa450edef68
2007-10-20 03:34:50 +00:00
Adam Heath
56e222afb0
Javolution is buggy; it doesn't support structural changes on sub
...
lists, as is required by the api.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586639 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 23:09:08 +00:00
Andrew Zeneski
590116e96c
changed method so it can be called through FTL static calls
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586597 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 20:28:21 +00:00
Adam Heath
6299562937
Fix up another call to ModelServiceReader.getModelServiceMap so that
...
it uses generics.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586590 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 19:45:08 +00:00
Andrew Zeneski
1a5f5d69c2
added adjustTimestamp method which doesn't require timezone or locale
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586582 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 19:09:27 +00:00
Adam Heath
8ce0dfc0ee
Add generics markup to code that deals with UtilCache directly.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586479 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:27:45 +00:00
Adam Heath
aedfa46991
loadClass calls now have generics markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586478 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:26:16 +00:00
Adam Heath
d8a8d6a922
Use generics markup from entity engine.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586477 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:24:56 +00:00
Adam Heath
ffeda205f6
Java 1.5 markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586475 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:23:50 +00:00
Adam Heath
a20d5e5b5c
Make use of UtilXml's generics markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586473 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:22:10 +00:00
Adam Heath
4c9f4fc83b
No longer return anything from checkAuth; instead, just modify the
...
passed in context.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586470 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:20:44 +00:00
Adam Heath
04a2050667
Don't use a single sendCallbacks method, with different value
...
arguments; it's not type-safe. Instead, use 3 variants.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586468 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:18:53 +00:00
Adam Heath
04ed802604
Start of java 1.5 markup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586467 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:17:07 +00:00
Adam Heath
d6dcdaa553
Java 1.5 markup for framework/appserver.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586466 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:15:03 +00:00
Adam Heath
90dc49d692
Collapse the nested collections in getServiceEventRules.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586464 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:12:06 +00:00
Jacopo Cappellato
88abdbd634
Misc improvements to the drop-down examples.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586463 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 14:04:50 +00:00
Jacopo Cappellato
8065f28732
New examples for date/time fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586458 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 13:53:26 +00:00
Jacopo Cappellato
a786fd7032
Applied patch from Adrian Crum to remove redundant permission checks.
...
OFBIZ-1353
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586453 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 13:46:20 +00:00
Jacopo Cappellato
6c988dc352
Applied patch from Jeremy Wickersheimer OFBIZ-1118 to provide a default value for the pagination-target: if not specified, now the attribute is retrieved from the request target uri.
...
It is now possible to remove most of (if not all) the paginate-target attributes set in form definitions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586449 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 13:42:47 +00:00
Jacopo Cappellato
b919e9d9ae
Applied patch from Marco Risaliti to fill empty table cells with the character: this wfixes the ugly layout in IE.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586446 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 13:37:35 +00:00
Jacopo Cappellato
69cf27f071
Added new screen and form to the Example application as a proof of concept for a way to create a library of tricks and best practices for form widget definitions; the Example application could then be used as a repository of easily accessible examples for widgets. In this example I've started to document some useful ways to use the drop-down fields.
...
What do you think? I did this change using the CTR (commit-then-review) policy: if you don't like this idea I will immediately revert.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586349 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 09:39:51 +00:00
David E. Jones
d1abb14eaa
Some refactoring of the sequence bank refill code: reorganized so that transaction management is inside the loop instead of out, causing each attempt to be in its own transaction to avoid doing mean things like locking and waiting; also added an extra synchronized block around the transaction that does the select/update/select stuff to protect it extra and avoid problems with waiting/sleeping; this is tested minimally and needs more thorough testng to see if it solved the problems seen
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586306 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 08:13:17 +00:00
Jacopo Cappellato
fa7284ec00
Converted appbar of the Example application from ftl to widget menu.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586303 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 08:02:28 +00:00
Adam Heath
4a609f7531
Intern the entity descriptions too.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586117 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 20:16:29 +00:00
Adam Heath
ba687998de
Fix CCE in equals.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586115 13f79535-47bb-0310-9956-ffa450edef68
2007-10-18 20:14:36 +00:00