Commit Graph
10472 Commits
Author SHA1 Message Date
Jacques Le Roux 060a0ad59b Internationalize the category/products and country/state dependent dropdown "worker" services (when the list is empty we need to show something to explain)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959984 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 13:45:55 +00:00
Erwan de Ferrieres 417be33da1 When an error message is displayed, clicking on it will make it disappear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959960 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 12:10:58 +00:00
Jacques Le Roux c16497a20c Revert r959673 on Scott's advice. There is already a getCategoryMembers. A bit different but it's ok, as it does not make much sense to sort categoryMembers with another field than sequenceNum
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959943 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 10:32:58 +00:00
Scott Gray e7f6f4e1eb Take care of some warnings while I'm in the area, ModelWidget already implements Serializable so ModelScreen doesn't need to mention it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959902 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 07:52:14 +00:00
Scott Gray 50e4f65d46 Removed all usage of the deprecated ModelScreenAction class
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959898 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 07:49:21 +00:00
Scott Gray f85c469494 Deprecated ModelScreenAction and it's subclasses, decided it was best to leave the class as is and just switch the screen widget code over to using ModelWidgetAction
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959893 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 07:40:57 +00:00
Adrian Crum d55b7b2e5c Small JavaDoc improvement, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959889 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 07:33:30 +00:00
Scott Gray 831721bc7c Added a new class ModelWidgetAction which will serve to replace the duplicate classes ModelScreenAction, ModelFormAction and ModelMenuAction. This class is virtually a direct copy of ModelScreenAction and its subclasses. I'll work over the weekend to switch the existing classes to extend from ModelWidgetAction, remove their methods and then deprecate the shells that are left behind.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959875 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 06:38:52 +00:00
Adrian Crum 850e4a50f1 Small enhancement to JdbcValueHandler: add support for sub-second Timestamp precision on databases that don't support it.
If a user chooses to do so, they can assign the date-time field type to a CHAR(30) SQL type. This will enable sub-second Timestamp precision on databases that don't support it.

The Timestamp will be stored as a string in JDBC Timestamp format (yyyy-mm-dd hh:mm:ss.fffffffff). Date/time comparisons can still be performed in SQL statements, but any date/time functions performed on the field will fail. Users could create UDFs to mimic those functions.

In addition, the CHAR(30) field will consume more storage space than a native Timestamp field (usually 8 bytes).

It will be up to the user to decide if they want to use this feature. If used in a pure OFBiz environment, everything should work as expected.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959868 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 06:28:14 +00:00
Adrian Crum b49bae579b Removed validators from ModelFieldType.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959716 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01 16:38:24 +00:00
Adrian Crum e4b686c9dc Removed validate element from fieldtype*.xml files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959708 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01 16:11:10 +00:00
Adrian Crum 3dd7ca4f70 Removed Cloudscape support from the entity engine. Cloudscape has been replaced by Apache Derby.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959695 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01 15:28:17 +00:00
Jacques Le Roux b89ca0e0ff Adds a getAssociatedProductsList method. I will certainly add the companions service and request later in the Product application.
I have also the vague desire to generalize this more, as I have been able to quickly use it in a widget form following the Freemarker way already used.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959673 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01 14:05:21 +00:00
Erwan de Ferrieres a98fde6e54 simplifying French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959671 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01 14:02:36 +00:00
Adrian Crum 6ad531be48 Some work on the entity engine:
1. Removed the conversion framework from the entity engine. Type conversions should be done higher up in the stack. The basic pattern is the same, but instead of each ModelFieldType containing a converter instance, it now contains a JdbcValueHandler instance. The JdbcValueHandler performs the same task as the original switch statement - in effect each ModelFieldType contains its own piece of the switch statement.

2. Added two new field types: byte[] and Object. Originally, the Blob field type was a catch-all for multiple Java data types. This change disambiguates the field's contents.

This has been tested on Advantage, Derby, and MySQL. It should be completely backward compatible. I will be monitoring the dev mailing list closely for any problems.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959470 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 23:27:24 +00:00
Adrian Crum 12d7ff5b73 Fixed a bad SQL type in fieldtypemysql.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959457 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 22:05:58 +00:00
Adrian Crum 76fc2006e5 Entity field test improvements - made them compatible with a broader range of databases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959456 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 22:05:04 +00:00
Scott Gray 18c40989d5 ServiceDispatcher method was returning a call to itself, stumbled across it by chance
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959453 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 21:58:32 +00:00
Erwan de Ferrieres 093f72b2aa Removing unnecessary calls to map. Thanks Adrian
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959291 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 12:45:55 +00:00
Erwan de Ferrieres e710059ab7 OFBIZ-3798 Add xml-rpc engine on serviceengine - A new patch from Nicolas Malin (https://issues.apache.org/jira/browse/OFBIZ-3798) - Also updating xml-rpc libs from 3.0.1 to 3.1.2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959261 13f79535-47bb-0310-9956-ffa450edef68
2010-06-30 10:52:12 +00:00
Erwan de Ferrieres 0803e3c6f1 Reverting previous commit as it wasn't fully reviewed and was producing errors. Sorry guys...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959076 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 19:19:55 +00:00
Erwan de Ferrieres ad183f5cea OFBIZ-3798 Add xml-rpc engine on serviceengine - (https://issues.apache.org/jira/browse/OFBIZ-3798)
A patch from Nicolas Malin - adding a generic service to call xml-rpc server. The goal is to have a technical interface to make calls directly from mini-lang.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959071 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 18:43:56 +00:00
Adrian Crum f7e66e26ba Entity test improvements:
1. Skip foreign key tests on datasources that don't use foreign keys.
2. Test all field types.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958769 13f79535-47bb-0310-9956-ffa450edef68
2010-06-28 22:29:01 +00:00
Adrian Crum d7a22a1b35 Changed Advantage database setting in entityengine.xml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958758 13f79535-47bb-0310-9956-ffa450edef68
2010-06-28 21:54:48 +00:00
Adrian Crum 96fd73e825 Updated fieldtypeadvantage.xml. Some of the SQL types were wrong - causing the tests to fail.
This commit will require anyone using the Advantage database to alter the data types on their existing database - which can be done with the Data Architect.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958752 13f79535-47bb-0310-9956-ffa450edef68
2010-06-28 21:48:11 +00:00
Erwan de Ferrieres da8510e3f1 Adding new geoAssocTypes, one for a town in a county, the other one for a postal code for a geoType
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958569 13f79535-47bb-0310-9956-ffa450edef68
2010-06-28 13:16:14 +00:00
Erwan de Ferrieres 143b01827a Adding missing French departments (counties)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958567 13f79535-47bb-0310-9956-ffa450edef68
2010-06-28 13:15:00 +00:00
Adam Heath 7ebbcfc4f1 Parallel execution of instrumentation, segmented by file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958277 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:41:02 +00:00
Adam Heath 7f37d0523a The static helper class now implements Callable<File>.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958276 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:57 +00:00
Adam Heath b8b1bd7aba Refactored instrument() so that the main body of work is done by a
static helper class.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958275 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:51 +00:00
Adam Heath e780a65555 Convert Arrays.asList() to a normal, modifiable List.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958274 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:45 +00:00
Adam Heath f685831073 Fix several generics warnings that have crept in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958273 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:39 +00:00
Adam Heath 76e9fc1b9a Remove use of deprecated ModelIindex.getIndexFieldsIterator().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958272 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:29 +00:00
Adam Heath 7135ac1de0 No longer use deprecated UtilMisc.staticWait().
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958271 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:24 +00:00
Adam Heath c20e5a2ac7 Fix bug forwarded by BJ, from the user list; namely,
FastList.subList().add(Object) throws UnsupportedOperationException.
This commit should be undone when javolution is fixed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958270 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 19:40:16 +00:00
Erwan de Ferrieres f8eac652a7 Allowing parameters in on-event-update-area via parameter child element
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958228 13f79535-47bb-0310-9956-ffa450edef68
2010-06-26 14:06:39 +00:00
Erwan de Ferrieres aefac4fdf0 Allowing parameters in XML forms when using on-event-update-area
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958066 13f79535-47bb-0310-9956-ffa450edef68
2010-06-25 18:32:15 +00:00
Jacques Le Roux d931ca6dfc Organize imports (found by chance), no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958040 13f79535-47bb-0310-9956-ffa450edef68
2010-06-25 17:16:29 +00:00
David E. Jones 1bcbfd70c4 Fixed issue with XML reserved characters in screen and form data, they will now be encoded and display properly instead of causing an error about bad formatting in an entity
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@957658 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24 18:09:08 +00:00
Erwan de Ferrieres baffc03933 Better handling of text when displayed in a chart
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@957494 13f79535-47bb-0310-9956-ffa450edef68
2010-06-24 10:27:50 +00:00
David E. Jones 43569dfc03 A couple of small changes to fix XSL:FO widget rendering blow ups: in field titles replace nbsp with space, this is necessry since certain forms use this for empty cells so the renderer doesnt use the default title, also changes the screen link and image marcos to have the full parameters in the other files as it was blowing up on that too (ie with parameters passed in that it doesn't know about)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@957362 13f79535-47bb-0310-9956-ffa450edef68
2010-06-23 21:47:41 +00:00
Adam Heath 13f13a19c5 Another fix for OFBIZ-3789, reported by rohit. COUNT(groupByViewField)
didn't work correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@957354 13f79535-47bb-0310-9956-ffa450edef68
2010-06-23 21:27:38 +00:00
Erwan de Ferrieres 40615fed9f Using a LocalDispatcher when having a groovy service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@957182 13f79535-47bb-0310-9956-ffa450edef68
2010-06-23 13:08:00 +00:00
Erwan de Ferrieres df20c1d880 Adding null condition when using entity-condition in views
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956565 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 13:08:30 +00:00
Adam Heath af5a7f91fe Remove useless check for non-null bundle, immediately after a null
check, in UtilResourceBundle.getBundle().

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956472 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 07:09:13 +00:00
Adam Heath 8c90119420 s/safeWait/Thread.sleep/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956471 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 07:09:08 +00:00
Adam Heath 08e5f40d52 Make use of makeMapWritable and makeListWritable to copy the list and
map.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956470 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 07:09:02 +00:00
Adam Heath 7fea76ce97 Fix formatting issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956469 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 07:08:57 +00:00
Jacques Le Roux c274921c68 Added TOMAHAWK description to be consistent, but anyway this is not used anywhere for the moment...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956343 13f79535-47bb-0310-9956-ffa450edef68
2010-06-20 10:47:33 +00:00
Jacques Le Roux 0f7d2f9462 New updateNote service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956129 13f79535-47bb-0310-9956-ffa450edef68
2010-06-18 21:08:24 +00:00