Scott Gray
b4b155de17
Commented test-suite declaration in webapp's ofbiz-component.xml because the contents of the test suite file are themselves commented out
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981174 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:51:36 +00:00
Adam Heath
66b76faf4e
The database check attempted to only check each helper once; however,
...
the Set used to track whether a helper had been checked was *inside* the
loop, so this optimization never actually did what was intended.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981123 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 03:08:07 +00:00
Scott Gray
ad81f1d1f1
Null check was incorrectly being used to determine if the directory existed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981104 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 23:47:55 +00:00
Adrian Crum
de50263021
Built out the new service parameter description feature. Descriptions defined in service interfaces are not being copied to the implementations - so that needs to be fixed.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981067 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 15:16:46 +00:00
Jacques Le Roux
04d803790b
A patch from Rene Scheibe "Click Expand or Colaspe All does not work as expected" ( https://issues.apache.org/jira/browse/OFBIZ-3744 ) - OFBIZ-3744
...
Reported by Sam Hamilton:
If you are on say this page - https://localhost:8443/catalog/control/EditProduct?productId=WG-9943
clicking on Expand All it will expand all the ones not expanded and then collapse the ones that were already open
clicking on Collapse All it will collapse all the ones open and open all the ones that were collapsed.
fixed issue
* css.style.visible cannot be true/false as used so in collapseAll()
* now using the $() container and calling visible() which returns true/false
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981051 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 13:07:13 +00:00
Jacopo Cappellato
2a7d97b45d
Always close the stream of the xml file after the parsing is done: this fixes a bug where the file was not deleted when it was successfully imported at the second or third attempt.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981028 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 10:13:49 +00:00
Scott Gray
4448c4a866
No functional changes, just removing a whole bunch of unused imports and reorganizing them along the way.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981019 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:28:34 +00:00
Scott Gray
e00b1cf382
Add a description element for service attributes, should make documenting some services a little easier. Still need to display it in webtools somewhere.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981018 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:26:42 +00:00
Scott Gray
e3d73f77ff
Must have decided to finish the comments after adding the method to git's index, committing the rest of the comments.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981009 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 05:48:36 +00:00
Scott Gray
ce96f755ac
Add a range condition to EntityDateFilterCondition, useful for finding entities applicable to a given date range.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981008 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 05:31:17 +00:00
Adrian Crum
86c11b0eaf
Documentation improvements in Assert.java and TimeDuration.java. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980982 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 22:13:48 +00:00
Scott Gray
640ebde077
Fix for OFBIZ-3786 reported by Sascha Rodekamp, first-visit controller events were not being executed. Fix based on a simplified version of the patch provided by Sascha.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980747 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 12:18:12 +00:00
Scott Gray
787799659a
Fix problem rendering content from the screen widget, thanks Hans for the report
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980687 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 08:57:40 +00:00
Adrian Crum
ba90a21a73
Log element in mini-language now prints source file line number.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980657 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 06:26:35 +00:00
Adrian Crum
46d6ef4c83
Added two new annotations, and did some code cleanups. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980645 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:40:16 +00:00
Adam Heath
629877dbe2
Generify JdbcValueHandler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980643 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:28:15 +00:00
Adam Heath
a9ac2afbdb
In checkRhs, add support for the rhs being an EntityFieldValue(this is a
...
partial fix, rhs can actually be *any* EntityConditionValue, so this
logic really needs to be revisited).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980642 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:28:09 +00:00
Adam Heath
9822ff4f05
Fix checkRhs logic when comparing the value type to the field type.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980641 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:28:04 +00:00
David E. Jones
800a85a38e
Fixed two bugs with autocomplete functionality: init script in selectall.js was not doing the search/replace properly for ampersands, in the FindAutocompleteOptions.groovy script the andExprs were not really anded together so split into the or and main and lists and assembled the conditions properly, which will fix the conditionFields and the andCondition fields
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980348 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 07:53:06 +00:00
Scott Gray
12807597e2
Temporarly revert my recent changes to renderLink(), a list of maps is being written directly to the macro call and I need to figure out how to support that. Problem reported by Jacques in the dev list.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980238 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 21:34:03 +00:00
Erwan de Ferrieres
3b3a0c404b
using ajaxSubmitFormUpdateAreas, if the return error message was not in a list format, an error was displayed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980038 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 12:45:04 +00:00
Jacques Le Roux
4c6376259c
Fix r979204 on Adam's remarks in dev ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@979430 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 20:24:28 +00:00
Jacques Le Roux
a81e990353
A patch from Deyan Tsvetanov "Service SaveLabelsToXmlFile omits labels for new locales that did not exist prior to calling service" ( https://issues.apache.org/jira/browse/OFBIZ-3869 ) - OFBIZ-3869
...
1) Use LabelManagerFactory and try to add labels for a locale that does not exist in the resource bundles - for example en_US.
2) Invoke the service SaveLabelsToXmlFile
Expected behavior: the resource bundle should contain the newly added locales
Experienced behavior: the resource bundle does not contain the labels for the newly added locales.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@979204 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 09:01:56 +00:00
Jacques Le Roux
1c0d7111b1
Makes fadeBackground="true" as it's by default in xsd and allow to pass disabled(true or false)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@979104 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 19:57:16 +00:00
Scott Gray
f4b8fe52fc
Converted all render* methods to use executeMacro(Writer, String, Map) instead of executeMacro(Writer, String). Removes over 100 lines of StringWriter usage, makes the code easier to read and also fixes the bug that Jacques committed a workaround for in r978893
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978954 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 00:36:13 +00:00
Scott Gray
a704a811ee
Changed the parameter map from <String, String> to <String, Object> since some macros use booleans and integers instead of strings. Changed the method to only wrap strings in double quotes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978953 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 00:36:02 +00:00
Scott Gray
a26146535f
Add a new method for constructing a freemarker macro call string, should simplify the code needed to generate a macro call and centralize the double quote encoding of parameter values. I'll be working to switch all of the render* methods over to using this today.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978944 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 23:15:45 +00:00
Jacques Le Roux
bfc14b25c9
Revert r966203 as asked by Adam on dev ML (I was also not for this change so 2x -1)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978863 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 12:42:40 +00:00
Jacques Le Roux
725f40b9d0
A patch from Sascha Rodekamp "Method to get a child element attribute from a specific XML file" ( https://issues.apache.org/jira/browse/OFBIZ-3874 ) - OFBIZ-3874
...
Just a good method to return a named attribute of a named child node or a default if null.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967151 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 16:06:41 +00:00
Erwan de Ferrieres
c39c604127
Manage compositeTypes in multi handler
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967012 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 09:27:59 +00:00
Adam Heath
827c205352
Fix file leak problem in KeyStore, the stream must be closed by the
...
caller(which also generally means doing it in a finally clause).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966785 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 18:30:51 +00:00
Joseph Eckard
d265053740
base font url will always be null
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966719 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 16:01:22 +00:00
Joseph Eckard
ea05e29713
replacing calls to deprecated FopFactory methods getFontBaseURL / setFontBaseURL
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966718 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 16:01:14 +00:00
Joseph Eckard
18f557fe42
reverting previous change, BaseURL is not the same as FontBaseURL
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966717 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 16:01:06 +00:00
Erwan de Ferrieres
124f19b1b4
Finally adding Apache FOP 1.0, barcode generation is now working
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966662 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 14:02:39 +00:00
Erwan de Ferrieres
9a78318c28
Reverting FOP1.0 integration as it is breaking the barcode generation. Still some work to be done
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966392 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 19:56:00 +00:00
Erwan de Ferrieres
d5020c9d5e
Adding the new FOP 1.0 to OFBiz
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966285 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 15:44:16 +00:00
Erwan de Ferrieres
7589e40be7
Correction for r966123, parametersMapAcsr could be null
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966282 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 15:38:33 +00:00
Erwan de Ferrieres
606cf7fc0f
if a time-dropdown has no value then 00:00 is displayed instead of the current time
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966203 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 12:14:08 +00:00
Erwan de Ferrieres
4800e33723
Adding event and action attributes to date-time field
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966202 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 12:10:08 +00:00
David E. Jones
9900ae2f76
Fixed NPE, improved handling
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966130 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 08:01:14 +00:00
David E. Jones
5835ddaa77
Added support for parameters-map for menu widget link elements
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966123 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 07:30:37 +00:00
Adam Heath
b198a80d4e
Fix typo s/espacing/escaping/
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965919 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:32 +00:00
Adam Heath
ac2299c50e
Fix a bunch of no final newline issues.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Adam Heath
92d004a866
Fix open file leak; the InputSource is only processed when a freemarker
...
template is given, so only attempt to create one if a template has been
specified.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965916 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:14:17 +00:00
Adam Heath
695cc497f2
Fix coverage reports; the coverage for base was reporting 100%, which is
...
not correct. With real numbers on base, it shows a lot of missing
lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965914 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:14:06 +00:00
Adrian Crum
9c11c2c261
Added Boolean converter tests - copied from Apache Commons Convert.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965843 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 13:39:05 +00:00
Adrian Crum
b8ad20ea06
Import cleanups and compiler warning fixes - no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965841 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 13:36:13 +00:00
Scott Gray
4e0a332c82
Correct some jar names that cause a warning on startup.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965689 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 00:23:04 +00:00
Scott Gray
114c8ae6a3
Setting the request-map/security element's direct-request attribute to false was only working if a default-request was present. Reported by Wai in OFBIZ-3861 and fixed using a variation of the patch that he supplied.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965163 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 05:55:35 +00:00