Adrian Crum
e6cf1921c2
Small enhancement to the UtilGenerics class. Added two helper methods to make it easier to write type-safe code.
...
Now you can do things like
Map<String, Object> params = UtilGenerics.toMap(context.get("parameters"));
without causing compiler errors or throwing ClassCast exceptions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662589 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 22:20:54 +00:00
Adrian Crum
3cb3602fcb
Small improvement to the MapStack class. The create(Map baseMap) method will create a standalone stack if baseMap is a MapStack. This will help reduce the code needed in calling methods.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662511 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 18:40:05 +00:00
Jacopo Cappellato
42723effc3
Implemented new event handler for Groovy scripts; converted two Beanshell events to Groovy.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662337 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 06:28:55 +00:00
Jacopo Cappellato
2128610fa6
Based on a recent discussion in the dev list, and especially on the comments from David Jones and the work done by Adrian Crum, I'm committing a patch to refactor all the widget rendering methods and some of the content and Freemarker rendering classes to use Appendable instead of Writer. OFBIZ-1816
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662328 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 05:27:12 +00:00
Jacques Le Roux
64aae96be1
Some French labels fix
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662287 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 21:04:21 +00:00
Jacques Le Roux
471f12f8b3
Some French labels fix
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662285 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 20:44:05 +00:00
Adrian Crum
c37f4f58f7
Screenlet widget bug fix.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662258 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 18:05:58 +00:00
Adrian Crum
2f776dc3e5
Improved Find Screen decorator.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662221 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 14:35:26 +00:00
Adrian Crum
c058f0872d
Screen Widget refactor - changed StringBuffer arguments to Writer arguments to help make the screen widget API more consistent. Also added some parameterized data types to cut down on the unchecked warnings.
...
There are no functional changes to the screen widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662123 13f79535-47bb-0310-9956-ffa450edef68
2008-06-01 01:50:41 +00:00
David E. Jones
670dabded0
Fixed bug reported by Ritesh Trivedi where an encrypted field accessed through a view entity was not decrypted
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662090 13f79535-47bb-0310-9956-ffa450edef68
2008-05-31 21:34:01 +00:00
Adrian Crum
674077d6c2
Fixed bug in rendering Timestamp milliseconds, https://issues.apache.org/jira/browse/OFBIZ-1815 .
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661962 13f79535-47bb-0310-9956-ffa450edef68
2008-05-31 06:33:27 +00:00
Anil Patel
5f06a4c753
Adding tooltips effects javascript library,
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661954 13f79535-47bb-0310-9956-ffa450edef68
2008-05-31 05:46:44 +00:00
Adrian Crum
834219e652
Small enhancement to the screenlet widget - you can specify if its initial state is collapsed.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661798 13f79535-47bb-0310-9956-ffa450edef68
2008-05-30 18:01:42 +00:00
Andrew Zeneski
a935abe496
added jboss 4.2.2 app server configuration
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661787 13f79535-47bb-0310-9956-ffa450edef68
2008-05-30 16:44:09 +00:00
Andrew Zeneski
9e17c4838a
added additional data to the dataMap; cleaned up imports
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661762 13f79535-47bb-0310-9956-ffa450edef68
2008-05-30 15:24:39 +00:00
Jacopo Cappellato
a5159661af
Removed unnecessary position attributes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661743 13f79535-47bb-0310-9956-ffa450edef68
2008-05-30 14:49:15 +00:00
Scott Gray
48c686d203
Applied patch from Raj Saini OFBIZ-1812, added additional support for Visa Electron card numbers
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661677 13f79535-47bb-0310-9956-ffa450edef68
2008-05-30 12:13:29 +00:00
Adrian Crum
2d89f0f365
Form widget Ajax refinements.
...
Changed attribute-based ajax calls to on-event-update-area elements. Fixed bug in autocomplete. Cleaned up some of the rendering code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661450 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 19:48:24 +00:00
Adrian Crum
90932e0a09
As discussed on the dev mailing list, add a new form widget field sub-element called on-field-event-update-area - intended initially for Ajax support. Each field widget renderer will perform Ajax calls appropriate for the control.
...
I'm in the process of finishing the widget code that implements this, but I wanted to get this out there right away due to the parallel Ajax efforts.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661345 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 15:06:42 +00:00
David E. Jones
64399e2f2e
Small change to fix NPE by checking for null instead of checking to see if there is an entry as it could be null
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661338 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 14:31:56 +00:00
Scott Gray
a94020d6df
Add support for groovy scripts to form widget actions
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661274 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 09:54:52 +00:00
David E. Jones
120c80da1a
Added type attribute to drop-down element for auto-complete variation; will use a server-side event that gets the form name/location and the field name from the session and then look at the form definition to see the option tags under the drop-down element to see what to query on along with the partial text entered for the results to send back to the client
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661182 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 02:23:55 +00:00
Adrian Crum
1e1f0cf697
Oops, missed one file in last commit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661096 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 21:29:05 +00:00
Adrian Crum
f6d176bff3
Misc layout fixes:
...
1. Reverted rev 659942.
2. Added new CSS class no-clear. Example of how it is used can be found in the SFA component.
3. Some IE7 CSS fixups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661095 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 21:26:52 +00:00
Jacopo Cappellato
da20a6682c
Fixed the direction of the relationship for group members of Europe.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660988 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 15:47:48 +00:00
Jacques Le Roux
9a687d6094
Suggest a workaround for RMI on Windows. More at https://issues.apache.org/jira/browse/GERONIMO-4037?focusedCommentId=12600300#action_12600300
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660877 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 09:31:25 +00:00
David E. Jones
a97dcc600a
Added further support for javolution ObjectFactory which will bring the efficiency improvements that along with syntax cleanup are part of this whole factory method effort
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660850 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:58:13 +00:00
David E. Jones
82df3529e2
More cleanups of now deprecated constructors and what what
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660840 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:16:36 +00:00
Jacopo Cappellato
fbc52e02dc
Several improvements to the Italians labels by Bruno Brusco: OFBIZ-1805
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660816 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 05:38:39 +00:00
David E. Jones
b9d6f8b524
Changed EntityExpr and EntityFunction subclasses to use the factory instead of constructor pattern, plus moved EntityExpr to EntityCondition factory methods; a number of EntityExpr cleanups, but many more to go
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660812 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 05:20:09 +00:00
David E. Jones
3543d6abe3
Changed the way EntityCondition sub-classes work so they use the javolution Reusable class for recycling objects; now all conditions should be created using the factory methods on the EntityCondition object instead of the direct constructors; there is a small variety of classes available there now for ease of use; also changed a bunch of old code to not use the deprecated constructors; note that still need to do a pass similar to this on EntityExpr
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660780 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 01:58:46 +00:00
David E. Jones
c434fd1614
Based on some comments from Joe Eckard and looking at the source for GroovyScriptEngine to see what it caches this now caches and runs based on parsed scripts, increasing performance
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660695 13f79535-47bb-0310-9956-ffa450edef68
2008-05-27 20:44:13 +00:00
David E. Jones
76196922b9
Fixed issue with groovy where if Script was cached the context was ignored; note that I could not find a thread safe way to run a parsed script, so this versio only caches the script text; need to find a way to parse just the script and run from the cache; the performance in this isn't terrible, but isn't good either
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660228 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 16:52:54 +00:00
David E. Jones
dd61115acd
Moving jpim from marketing to base to be more reusable
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660123 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 08:38:02 +00:00
Jacopo Cappellato
b58053df4b
For backward compatibility we load the html platform-dependent template if the one for xsl-fo is not found.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660108 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 06:37:58 +00:00
Jacopo Cappellato
b1bd619d66
Set correct template type for xsl-fo platform dependent templates: this is now required because the platform-dependent element can now accept different templates for different types.
...
Thanks to Jacques Le Roux for the report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660107 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 06:25:57 +00:00
Hans Bakker
46f2c7239f
typo in main tab bar
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660067 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 00:56:30 +00:00
Jacques Le Roux
c0e1247771
A fix suggested by Bilgin from a Bruno's message in dev ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659979 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 13:00:33 +00:00
Jacques Le Roux
d403834733
Some small enhancements
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659966 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 11:40:18 +00:00
Hans Bakker
5c1efd4679
allow the menu usage also in a column: see the sfa component
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659942 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 09:13:52 +00:00
Jacopo Cappellato
15d63246d6
Added support for xsl-fo and xml templates to the platform-specific screen widget element. Now it is possible to define the same screen that can be rendered with different renderers. An example of this is the SimpleDecorator that is now used to render simple PDF report (xsl-fo), xml export and printer friendly html output. You can test it in the Edit Example screen (and some other screens as well): the PDF and Printer Friendly links in that page both share the same screen definition. Misc fixes to the widget FO and XML renderers, for issues found while testing.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659935 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 08:00:10 +00:00
Scott Gray
75a4f5676b
Fix for OFBIZ-1802 reported by Ashish Vijaywargiya, Error in Data File Tool. The uiLabelMap was being used in the bsh script without being defined.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659870 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 20:32:31 +00:00
Jacques Le Roux
a6b690558f
Hopefully last missing common French labels
...
I will try when I will use Bruno's python scripts to create from them generic tools to check some aspects of localisation
For instance, which labels are missing in a languages, other ideas ?
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659819 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 13:29:03 +00:00
Jacques Le Roux
2a0d94bece
Some more and better french labels
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659801 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 12:10:55 +00:00
Scott Gray
b7b80f9cac
Removed an eca which was causing testScv to fail
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659789 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 10:49:20 +00:00
Scott Gray
b28727bcca
Removed auth="true" from 2 test services, one of them is on an eca from another test service that doesn't require auth
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659764 13f79535-47bb-0310-9956-ffa450edef68
2008-05-24 08:00:35 +00:00
Jacopo Cappellato
1d44046832
Fix for security hole I have introduced while working on the Ajax autocompleter fields.
...
This is a temporary approach that can be improved.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659658 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 20:57:27 +00:00
Jacques Le Roux
53603d4e58
A small french label fix
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659536 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 13:32:16 +00:00
Jacques Le Roux
81a2fe0192
Few important new labels (AP & AR)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659524 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 12:56:42 +00:00
Jacopo Cappellato
cfd0f1c0c8
Upgrade to Tomcat 6
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659490 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 10:26:46 +00:00