Commit Graph
8158 Commits
Author SHA1 Message Date
Jacques Le Roux 6c637a7b7d Implements "The lookup and text-area have a read-only attribute but not the text input field" at https://issues.apache.org/jira/browse/OFBIZ-6395
Adds a read-only attribute to the text input field. Using the display type is not enough, because it's uneasy to assign values through Javascript as using the lookup description-field-name shows OOTB. And the disabled option is not good when you want to still show the submitted values on return.

Also 
* improves widget-form.xsd documentation about read-only attribute for lookup
* completes the foFormMacroLibrary.ftl where placeholder tabindex  were missing (if this even ever makes sense)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680921 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 16:29:49 +00:00
Jacques Le Roux 55f5564611 A better patch from Adrian for "Field Lookup do not show description when widget-verbose is set to false" https://issues.apache.org/jira/browse/OFBIZ-6396
When widget verbose is set to false and using field lookup, the description of the selected object is not displayed (not using auto completion but the popup).
To reproduce : Set widget.verbose=false in framework/widget/config/widget.properties  
Clear OFBiz cache then go to : https://localhost:8443/partymgr/control/EditPartyRelationships?partyId=Company
In the partyRelationship creation form, in party Id From field, click on lookup, search, select AUTHOR_MADMAX, and so no description displayed. Using autocompletion it's fine.

jleroux: This reverts the previous patch from Gil. It did not occur to me that all the rest of the result was only commented out HTML code, so a simple trim was enough. Happy to get rid of this ugly kludge



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680881 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 14:18:16 +00:00
Jacques Le Roux 4e2ddf8f0a A patch from Gil Portenseigne for "Field Lookup do not show description when widget-verbose is set to false" https://issues.apache.org/jira/browse/OFBIZ-6396
When widget verbose is set to false and using field lookup, the description of the selected object is not displayed (not using auto completion but the popup).
To reproduce : Set widget.verbose=false in framework/widget/config/widget.properties  
Clear OFBiz cache then go to : https://localhost:8443/partymgr/control/EditPartyRelationships?partyId=Company
In the partyRelationship creation form, in party Id From field, click on lookup, search, select AUTHOR_MADMAX, and so no description displayed. Using autocompletion it's fine.

This patch use a trick to no care about widgetVerbose comments. Sad to use this kind of trick, but if not, spaces might not be trimed. With that, the display is perfect. No side effect detected. 

jleroux: I still regret Hans past attitude about widgetVerbose which initially forced me to this hack 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680873 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 13:45:02 +00:00
Jacques Le Roux 8d3e2f88cb A patch from Youssef Khaye updated by Wei Zhang for "Adding a new attribute ignore-when (verry similar to use-when) that enable rendering or not a field in list or multi form." https://issues.apache.org/jira/browse/OFBIZ-4481
Or on a form of type list or multi, it is not possible to completely ignore a field via use-when attribute. Instead it hides the title and the column header became shifted from the table content.
For example I want to hide the description column from my form when exampleName is choosen as sort-field.

This also modifies
    example/widget/example/ExampleForms.xml#ListExamples
to illustrate this functionality


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680865 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 13:09:01 +00:00
Jacopo Cappellato 74e6dec22f OFBIZ-6380 Upgraded Log4j from 2.2 to 2.3.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680733 13f79535-47bb-0310-9956-ffa450edef68
2015-05-21 05:40:27 +00:00
Adrian Crum 75aefbb887 Remove DCL pattern from MenuFactory.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680329 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 16:05:13 +00:00
Adrian Crum 60cf53e27e Added visual theme seed data that was missed in rev 1648013.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680319 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 15:37:36 +00:00
Deepak Dixit 0cb6d60dc8 Added locale and timeZone as a service in parameter for groovy dsl. Now locale and timeZone not passed as service in parameter then groovy dsl will get it from context and passed as service in parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680274 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 12:43:54 +00:00
Michael Brohl 2f107d8155 Applied patch from jira issue OFBIZ-5610: Date formats displayed in the title of the input field are not correctly showing the default format for UK but the actual date itself is correct.
I had to slightly modify the patch from "en_GB" to "en-GB" entries. Thanks Gareth Carter for reporting the issue and providing the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680219 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 09:49:37 +00:00
Jacques Le Roux 8e8dc43528 Fixes in another way "Make background-color in setSourceColor function in fieldlookup.js theme dependent" https://issues.apache.org/jira/browse/OFBIZ-6371
I preferred the idea of using the jQuery UI effect function as explained in the Jira. It's then no longer color dependent since jQuery has #ffff99 as default color and this might be overridden easily in themes...
https://api.jqueryui.com/highlight-effect/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680201 13f79535-47bb-0310-9956-ffa450edef68
2015-05-19 08:30:47 +00:00
Adrian Crum 240ba74d82 Replace ClassCastException with type check - https://issues.apache.org/jira/browse/OFBIZ-6291.
Ignoring a thrown ClassCastException is a common pattern in the project (one I have used myself), but it should be avoided in the future because it makes debugging difficult, plus it creates objects unnecessarily.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1680058 13f79535-47bb-0310-9956-ffa450edef68
2015-05-18 17:18:54 +00:00
Jacques Le Roux d4818dfd66 A patch from Pierre Smits "util.js is missing licence header" https://issues.apache.org/jira/browse/OFBIZ-6384
jleroux: This is related to OFBIZ-5409. I noted then "The util.js script is introduced for that, though normally should not be needed... "



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1679982 13f79535-47bb-0310-9956-ffa450edef68
2015-05-18 10:58:10 +00:00
Jacques Le Roux 688da5d2d2 "Updates Log4j 2.2 to 2.3" https://issues.apache.org/jira/browse/OFBIZ-6380
Reverts r1679702

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1679723 13f79535-47bb-0310-9956-ffa450edef68
2015-05-16 10:52:41 +00:00
Deepak Dixit 07a7c64d3d Fixed fieldsToSelect type from list to set as find method accept fieldsToSelect as set.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1679719 13f79535-47bb-0310-9956-ffa450edef68
2015-05-16 10:33:40 +00:00
Deepak Dixit 6ce8d7d74d OFBIZ-6351 - Upload function does not work on Party Manager.
Upgrade commons-compress jar from 1.4.1 to 1.9

Thanks Supachai Chaima-ngua and Pierre Smits for reporting the issue, and thanks Supachai Chaima-ngua for providing the fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1679709 13f79535-47bb-0310-9956-ffa450edef68
2015-05-16 09:01:01 +00:00
Jacques Le Roux 4bf39d2316 "Updates Log4j 2.2 to 2.3" https://issues.apache.org/jira/browse/OFBIZ-6380
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1679702 13f79535-47bb-0310-9956-ffa450edef68
2015-05-16 08:27:54 +00:00
Jacques Le Roux 8b7cda5012 Small change for "Improves dialog boxes generated by ajax-window link parameter" https://issues.apache.org/jira/browse/OFBIZ-6359
Adds closeOnEscape

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1679172 13f79535-47bb-0310-9956-ffa450edef68
2015-05-13 10:09:27 +00:00
Deepak Dixit 169dedf9a2 Used UtilHttp.getLocale() to get the locale instead request.getLocale()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678911 13f79535-47bb-0310-9956-ffa450edef68
2015-05-12 11:02:42 +00:00
Jacques Le Roux 943e010b81 No functional changes, just simpler syntax, parenthesis not needed here
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678298 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:58:47 +00:00
Jacques Le Roux 1711869690 Fixes "When used setDependentDropdownValuesJs.ftl precludes focus-field-name" https://issues.apache.org/jira/browse/OFBIZ-6346 with examples in FormWidgetExampleForms.xml and for NewCustomer screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678294 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:53:39 +00:00
Jacques Le Roux bdea0c167c Temporary reverts r1678291+1678292 to have only 1 commit easier for backporting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678293 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:31:57 +00:00
Jacques Le Roux 4ea39c7cef Fixes "When used setDependentDropdownValuesJs.ftl precludes focus-field-name" https://issues.apache.org/jira/browse/OFBIZ-6346 with examples in FormWidgetExampleForms.xml and for NewCustomer screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1678291 13f79535-47bb-0310-9956-ffa450edef68
2015-05-08 07:24:10 +00:00
Jacopo Cappellato 5c2e9841e8 Removed commons-cli jar that was not used: barcode4j has an optional dependency on it but only if used from the command line (which is not the case in OFBiz); Groovy has a dependency on Commons CLI, antlr, asm but it uses a copy of them bundled in groovy-all jar, so removing the pathelements set for the ant path id "groovy.class.path".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1677597 13f79535-47bb-0310-9956-ffa450edef68
2015-05-04 13:36:09 +00:00
Adrian Crum a84272b1ba Trivial code cleanup in ObjectType.java - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1677386 13f79535-47bb-0310-9956-ffa450edef68
2015-05-03 11:25:08 +00:00
Jacques Le Roux 1054bfa97c Fixes the way the FOP baseUrl was set. This was due to a change introduced for "Allow FOP to support <fo:external-graphic></fo:external> for -Dportoffset" at https://issues.apache.org/jira/browse/OFBIZ-6120
Thanks to Deepak's report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1677123 13f79535-47bb-0310-9956-ffa450edef68
2015-05-01 12:08:59 +00:00
Adrian Crum ebf03ea721 Some work on ComponentContainer.java:
1. Improved thread safety
2. Optimization
3. Code cleanup
4. Use String constant instead of hard-coded value


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676985 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 13:46:46 +00:00
Adrian Crum d82005c958 Use String constant instead of hard-coded value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676975 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 12:42:17 +00:00
Adrian Crum ec9d5d5416 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676974 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 12:41:26 +00:00
Adrian Crum ef710ed02f Some work on ComponentLoaderConfig.java:
1. Thread safety
2. Optimization
3. Code cleanup
4. Improved error handling

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676970 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 12:12:17 +00:00
Adrian Crum f322e1ca88 Optimization: move array creation outside loop so it is created only once.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676953 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 10:32:40 +00:00
Adrian Crum 4d01ad0289 JavaDoc fix and remove debug code. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676947 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 10:17:03 +00:00
Adrian Crum 2d37c15a48 Remove some code comments that were accidentally copied to new files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676942 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 09:56:34 +00:00
Adrian Crum 0cae1a3571 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676749 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 14:17:14 +00:00
Adrian Crum c2de699ca6 Fixed some bugs in startup code (https://issues.apache.org/jira/browse/OFBIZ-6268):
1. Class path loading was ignoring component settings, so class paths for disabled components were being loaded.
2. Configuration files were parsed twice.
3. Potential problem with unloading a loader that failed loading.

I was unable to test Cobertura because the necessary class (org.ofbiz.base.config.CoberturaInstrumenter) isn't being compiled for some reason.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676746 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 13:52:27 +00:00
Adrian Crum cd4f6cdbb3 Fixed a bug in UtilMisc.java where the List returned by the availableLocales() method included an empty Locale - causing errors in FreeMarker templates.
https://issues.apache.org/jira/browse/OFBIZ-6309

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676674 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 06:10:01 +00:00
Adam Heath 2dd530a51e Remove uesless exclusion of ofbiz crypto class compilation.
This was based on the availabily of javax.crypto.Cipher, which became
standard in java 1.4.  We require 1.7.  This is very old.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676154 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 23:30:20 +00:00
Adrian Crum 86d58f1fb1 Clean up unusual initialization of StartupException in Start.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676100 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 11:59:42 +00:00
Adrian Crum 57977ab950 Code simplification in StartupException.java - remove custom code that duplicates functionality that already exists in super class Throwable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676098 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 11:36:49 +00:00
Nicolas Malin 5f6c13b369 correct String conversion to Set on StringUtil that not respect the field order, thanks to Francis Douet to raise it on the issue (OFBIZ-6299 Field order is not correct in the auto-complete for look-ups.)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675998 13f79535-47bb-0310-9956-ffa450edef68
2015-04-25 07:00:42 +00:00
Jacques Le Roux 23c89bab02 This defines the NotoSans font as default for report and FOP-PDF examples
With NotoSans by default, no need to specify the NotoSans "font-family" to write special characters in examples PDF (including content called from example).
This already worked in reports because of "fop.font.family=NotoSans" in fop.properties. It's also the way to use for custom reports.

I also added <auto-embed/> like we have <auto-detect/> but I'm unsure of what it does exactly (I suppose it embeds the fonts glyphs in the PDF) because the FOP documentation is unclear about it (to say the least). If someone knows better please chime in!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675061 13f79535-47bb-0310-9956-ffa450edef68
2015-04-21 08:03:41 +00:00
Adrian Crum 4a6cd610ee Some trivial optimizations in Config.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674546 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 17:45:20 +00:00
Ashish Vijaywargiya d604e748d5 Applied patch from jira issue - OFBIZ-6260 - foScreenMacroLibrary.ftl renderLabel doesn't apply style parameter.
Thanks Christian for creating the issue and contributing the patch for the same. Thanks Aditya for reviewing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674513 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 14:11:37 +00:00
Jacques Le Roux 3ecea0fd93 A patch from Pierre Smits "Move special purpose/jetty to attic" https://issues.apache.org/jira/browse/OFBIZ-6223
As per outcome of http://ofbiz.markmail.org/message/xoqjhbitdj5fi3bl remove special purpose/jetty from the trunk branch and add a notification to the attic document.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674482 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 11:44:52 +00:00
Adrian Crum a2fc70daff A small change to the behavior of the UtilProperties.createProperties() method: if the file is not found, return null instead of throwing an exception.
https://issues.apache.org/jira/browse/OFBIZ-6261

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674453 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 08:30:03 +00:00
Deepak Dixit 5fdc62745e Applied patch from jira issue OFBIZ-4837 - Separator Error in data file tools.
Thanks   Gil Portenseigne for reporting and providing the patch for the issue, Thanks Aditya for uploading the update patch and verifying it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674447 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 06:40:32 +00:00
Jacques Le Roux d524de4d4c No functional change, replace &quot; by "
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674292 13f79535-47bb-0310-9956-ffa450edef68
2015-04-17 12:36:12 +00:00
Adam Heath c589bdaa28 Well, this is the start of converting ofbiz to use maven for building
and packaging.  There's a workable parent-pom, and I have converted
framework/start to maven as well.  To use this, the following commands
are useful:

* mvn clean
* mvn compile
* mvn package

All 3 can be run in either ${ofbiz.home.dir}, or in framework/start.
The trick that made this simple, was that I was able to redefine maven's
default file layout away from src/main/java and target/*, to something
more ofbiz specific.  This way of doing things is just to get things
going; eventually, we should adopt a more standard maven like layout.

Another thing not dealt with in these first 2 files, is downloading of
dependencies.  The top-level and framework/start have no external
requirements, so it allowed me to get going quite quickly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674216 13f79535-47bb-0310-9956-ffa450edef68
2015-04-17 05:52:32 +00:00
Adrian Crum a1bb4ff6bc Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674064 13f79535-47bb-0310-9956-ffa450edef68
2015-04-16 13:05:55 +00:00
Jacques Le Roux 2d46984aec Fixes a typo after a C/P
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673912 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 18:14:18 +00:00
Jacques Le Roux d4ae38b2ae Revert r1673764 related with https://issues.apache.org/jira/browse/OFBIZ-6253 wrong: "Fixe <result-to-field> doc for <call-simple-method> in simple-methods-v2.xsd"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673880 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 17:22:20 +00:00