Commit Graph
8203 Commits
Author SHA1 Message Date
Nicolas Malin 895c9856b3 Cleaning forms code is needed after setting default-value in list-options and entity-options, patch related to OFBIZ-6524 and follows the resolution of OFBIZ-6490 and OFBIZ-6489. Thanks Gil Portenseigne for this effort
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686674 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 21:58:05 +00:00
Nicolas Malin 7382855c7b Use as default on <entity-option> and <list-option> description attribute like <display-entity> element. Related issues OFBIZ-6489 and OFBIZ-6490. Thanks to Christian Carlow for this and Gil Portenseigne for the review
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686673 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 21:28:12 +00:00
Adrian Crum e2f875de2d Restored the 'request-confirmation' and 'confirmation-message' menu item attributes that were removed in the recent widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-6334.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686666 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 19:41:05 +00:00
Adrian Crum 220270f628 Move theme-specific js & css references from CommonDecorator(s) to themes - https://issues.apache.org/jira/browse/OFBIZ-6362.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686655 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 17:02:22 +00:00
Nicolas Malin bdce756456 use better french translation CommonApply -> Appliquer
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686622 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 13:53:49 +00:00
Nicolas Malin e424ded590 Replace FTL at webtools/control/entitymaint with widgets. Remove multi column and convert links as include-menu. By default the entityName is link on Find and receive the anchor. This patch is related to OFBIZ-6402, thanks Christian Carlow for this issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686621 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 13:50:13 +00:00
Arun Patidar 3f36969de4 [OFBIZ-6237] Applied patch from the task. Fixed the issue of deleting existing GeoAssocs records while addind new GeoAssocs. Thanks Himanil Gupta for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686616 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 13:28:30 +00:00
Nicolas Malin 6aab83641f error in parsing array in ajaxUpdateAreas, use a regexp tp split all parameters separate by comma and support this string a,{b,c,d},e as three parameters and not five. Patch related to OFBIZ-6496. Thanks Pierre Gaudin for this issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686593 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 12:13:13 +00:00
Michael Brohl 8568760a60 Applied changes for OFBIZ-6300: Compiler-Error with JDK 1.8 and source compatibility 1.8.
This reintroduces type safety for getFieldentryIterator.

Thanks Martin Becker for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686570 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 11:43:30 +00:00
Nicolas Malin 484124f581 Improve widget-form with four elements : include-form, include-grid, include-menu, include-screen to offert more flexibility to define complex display. The main purpose is to complete the screen widget capacity to replace ftl screen.
With these elements, example component have a new FindExample search screen to select the display list type with a example of :
   * include-form : list examples with their features
   * include-screen : list examples with their items
   * include-grid : list examples with their status history
The element include-menu is present on FindUtilCache screen. Also a new CommonInlineBarMenu menu type to display menu with specific purpose (in-line) is now present and with this logic adding in-line-bar css class on themes thomawak and flatgrey.

This patch is combinate Issues : 
 * OFBIZ-6502 Add support for form/grid embedding within grids
 * OFBIZ-6501 Add support for screen embedding inside grids
 * OFBIZ-6404 Allow form/grid widget hyperlinks to be grouped into a single column
sub-tasks of master issue OFBIZ-6314 Widget Refactoring - Placeholder issue

Thanks to Christian and Adrian for their time

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686116 13f79535-47bb-0310-9956-ffa450edef68
2015-06-17 21:50:27 +00:00
Nicolas Malin 34f0f48f08 correct renderLink macro on foScreenMacroLibrary.ftl to avoid a freemarker stacktrace, related to OFBIZ-6461
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1685176 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 21:28:11 +00:00
Nicolas Malin c6e5d7e695 fix previous commit : tika has been commented, isn't needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1685133 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 16:52:28 +00:00
Nicolas Malin 68522eb09b Second pass due to local problem :/ . Resynchronise template macro form xml, text, csv and fo from html related to issue OFBIZ-6461.
adding unit test that call webtools/control/WebtoolsLayoutDemo with html, text, csv, xml and fop render and detect on the stream if an FTl stacktrace is present.
The fop test is currently commented because the screenfop failed to generate WebtoolsLayoutDemo page.
To support the unit case, the screen engine has been extend to manage platform-specific : <text> and <csv>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1685132 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 16:48:55 +00:00
Nicolas Malin ae1af54128 revert previous commit, bad repo use my apologies
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1685130 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 16:46:08 +00:00
Nicolas Malin d3e95bb938 Resynchronise template macro form xml, text, csv and fo from html related to issue OFBIZ-6461.
adding unit test that call webtools/control/WebtoolsLayoutDemo with html, text, csv, xml and fop render and detect on the stream if an FTl stacktrace is present.
The fop test is currently commented because the screenfop failed to generate WebtoolsLayoutDemo page.
To support the unit case, the screen engine has been extend to manage platform-specific : <text> and <csv>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1685124 13f79535-47bb-0310-9956-ffa450edef68
2015-06-12 16:25:30 +00:00
Jacopo Cappellato eb6d01b066 New implementation of the two-way cryptographic services of OFBiz based on Apache Shiro:
* two-way encryption is now delegated to Apache Shiro, with stronger initialization vectors
* the mechanism is backward compatible
* new tools to update the encryption of private keys, useful to upgrade older versions of OFBiz and most of all to replace old keys with new ones (this is critical to implement stronger security practices as requested by PCI) 
* unit tests



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684608 13f79535-47bb-0310-9956-ffa450edef68
2015-06-10 09:01:30 +00:00
Christian Carlow aece17ee2f Adding support for styles for foFormMacroLibrary.ftl renderFormatListWrapperOpen
https://issues.apache.org/jira/browse/OFBIZ-6483

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684232 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 17:56:47 +00:00
Adrian Crum ed1d93be59 Revert rev 1684133 and fix the compiler error properly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684217 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 16:14:45 +00:00
Adrian Crum a73c51bb49 Fix a thread-safety issue. Trivial unit test changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684216 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 16:12:30 +00:00
Christian Carlow 78b42f0763 Adding support for foFormMacroLibrary.ftl renderFormOpen styles
https://issues.apache.org/jira/browse/OFBIZ-6481

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684176 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 13:19:55 +00:00
Christian Carlow e4b2284e49 Adding support for foFormMacroLibrary.ftl renderFieldTitle style parameter.
https://issues.apache.org/jira/browse/OFBIZ-6479

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684142 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 10:52:06 +00:00
Jacques Le Roux 08e14fc292 A patch from Taher Alkhateeb "Upgrade OFBiz to Java JDK 8" https://issues.apache.org/jira/browse/OFBIZ-6458
2nd step: allows Eclipse EJC to compile, fixes a problem with compilation error in eclipse only, it works okay in javac but not in Eclipse EJC

jleroux: this introduces a small "regression" in the code syntax but to allow users to compile with Eclipse EJC.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684133 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 09:58:50 +00:00
Jacques Le Roux b863051dfd Implements "Geo Data Set for Chile" https://issues.apache.org/jira/browse/OFBIZ-6476
Follow discussion on user ML. 

I did not see Pierre Smits's patch at OFBIZ-6476, so I committed the date Peter provided, plus the Chile CountryAddressFormat I added

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684105 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 07:39:39 +00:00
Jacques Le Roux 2b879e4dfb Completes French CountryAddressFormat
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684104 13f79535-47bb-0310-9956-ffa450edef68
2015-06-08 07:37:37 +00:00
Christian Carlow ce084046ad Adding support for renderImage in framework/widget/templates/foScreenMacroLibrary.ftl
https://issues.apache.org/jira/browse/OFBIZ-6475

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684067 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 19:47:17 +00:00
Christian Carlow e48310e533 Fixing this error caused by id parameter not being assigned to default value for OFBIZ-6403:
FreeMarker template error: When calling macro "makeHyperlinkString", required parameter "id" (parameter #12) was not specified.

https://issues.apache.org/jira/browse/OFBIZ-6403

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684066 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 19:41:47 +00:00
Jacques Le Roux af9ccf0c17 A patch from Taher Alkhateeb "Upgrade OFBiz to Java JDK 8" https://issues.apache.org/jira/browse/OFBIZ-6458
1st step: fixes a test which was not passing 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1684042 13f79535-47bb-0310-9956-ffa450edef68
2015-06-07 16:03:04 +00:00
Christian Carlow f9b4e93a42 Added another ModelFormField.TextField constructor to allow subclass RangeFindField constructor to override the TextField default fieldType of FieldInfo.TEXT with FieldInfo.RANGEQBE
https://issues.apache.org/jira/browse/OFBIZ-6459

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683832 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 18:35:13 +00:00
Jacques Le Roux 0acd4839a0 Comment out Greek, no labels yet...
https://issues.apache.org/jira/browse/OFBIZ-5177 "Cleanup UI Labels for languages which aren't well supported"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683774 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 14:48:11 +00:00
Jacques Le Roux 68e64e188c Sorry Frisian we decided you have to go
https://issues.apache.org/jira/browse/OFBIZ-5177 "Cleanup UI Labels for languages which aren't well supported"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683761 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 14:20:18 +00:00
Jacques Le Roux 8497a6d908 Fixes a typo Sharan spotted and Pierre Smits told me
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683749 13f79535-47bb-0310-9956-ffa450edef68
2015-06-05 13:30:10 +00:00
Nicolas Malin 70cffbfb2c Form widget hyperlink.id attribute isn't supported by MacroFormRenderer.java (OFBIZ-6403) thanks christian carlow for this issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683642 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 20:55:59 +00:00
Taher A. Alkhateeb 07cb144a6c Translate the framework to Arabic
Another part of the translation of OFBiz to Arabic 
project found in JIRA OFBIZ-6432.

The commit translates the following components (in varying degrees):
- Content
- Order
- Party
- WorkEffort
- more framework translations

refs https://issues.apache.org/jira/browse/OFBIZ-6432


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682725 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 12:13:45 +00:00
Taher A. Alkhateeb 62b0f73212 Translate the framework to Arabic
Another part of the translation of OFBiz to Arabic 
project found in JIRA OFBIZ-6432.

The commit translates the following files :
- framework/base/config/DateTimeLabels.xml
- framework/widget/config/conditional.xml

refs https://issues.apache.org/jira/browse/OFBIZ-6432


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682699 13f79535-47bb-0310-9956-ffa450edef68
2015-05-31 08:49:43 +00:00
Nicolas Malin e3dcdf5098 Apply patch from OFBIZ-6417 renderDateFindField doesn't reselect operation by Christian Carlow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682462 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 13:39:53 +00:00
Jacques Le Roux cba79daa92 Replaces by better labels, stumbled upon it while backporting r1682415 for OFBIZ-6229. I missed it when committing r1667969
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682444 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 12:37:29 +00:00
Taher A. Alkhateeb 423d83a51c Provide a fix for OFBIZ-6229 and allow creation of new Geos
Fix the following problems:

- The search screen results take you to the link geos.
  it should go directly to create / edit instead
- You cannot edit a geo because the parameter is not passed across 
  the tabs link and edit / create. The menus should be redefined
  to pass the parameter around
- The primary key is enforced in the service definition when 
  it should be optional to create new geos
- finally, the geoId should not be a lookup field as
  an entity cannot lookup itself

Refs https://issues.apache.org/jira/browse/OFBIZ-6229


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682415 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 10:43:41 +00:00
Jacques Le Roux 34fe4d09b6 Better documentation for <<Lookup fields break when used with a form having skip-start="true">> https://issues.apache.org/jira/browse/OFBIZ-6139
I also improved the description of the Jira. Thanks to Pierre Smits's questions who tried the feature.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682414 13f79535-47bb-0310-9956-ffa450edef68
2015-05-29 10:25:00 +00:00
Nicolas Malin 1e015b79ba Apply patch from OFBIZ-6415 renderTextFindField doesn't reselect operation dropdown or ignoreCase checkbox by christian carlow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682342 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 21:41:52 +00:00
Jacques Le Roux 6ad4d92057 No functional change, just fixes a trivial formatting issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682282 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 17:06:31 +00:00
Michael Brohl 3ccfd17f1f Manually applied patch from jira issue OFBIZ-6310: createConditionList doesn't handle widget dropdown multi-submitted values when called by performFind. Adds detection if the field value represents a collection and in this case sets EntityOperator.IN instead of EntityOperator.EQUALS.
Thanks Christian Carlow for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682272 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 16:28:17 +00:00
Michael Brohl 358a7486c5 Applied patch from jira issue OFBIZ-6414: drop-down widget field with allow-multiple="true" does not display current value.
ModelFormField.getEntry returns the string representation of the value corresponding to the field in either the context map or parameters map but when the value is returned as a list [X, Y, Z], the opening and closing brackets are encoded [X, Y, Z]
This prevents the FormRenderer (atleast MacroFormRenderer) from detecting a list object from the string and converting it back to a list
eg - currentValueList = StringUtil.toList(currentValue).

The solution detects a collection value and handles the proper encoding.

Thanks Gareth Carter for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682234 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 12:58:31 +00:00
Michael Brohl 6e499d7655 Code cleanup, no functional changes (https://issues.apache.org/jira/browse/OFBIZ-6420)
Removed unnecessary double checks and corrected exception handling where the catched exception was too broad.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682214 13f79535-47bb-0310-9956-ffa450edef68
2015-05-28 11:33:52 +00:00
Michael Brohl 1613bbee07 Manually applied and modified the changes of the patch from jira issue OFBIZ-6312: Catalog Manager's EditProduct screen HTML should place a limit on the size of text that can be entered in the Product Description box.
Introduces a new maxlength attribute to the textarea element in forms, applies the maxlength (255 chars) value in several FTL files, when the DB is limiting the length.

Thanks Forrest Rae for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682132 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 22:18:29 +00:00
Jacques Le Roux 5c7f0b1fcb This closes "Replace bsh code with Groovy code" https://issues.apache.org/jira/browse/OFBIZ-6332 with all its subtasks and more.
jleroux: I suspected it was only a matter of replacing "${bsh" by "${groovy" in *.xml. But I had not the guts to get into 11(!) sub tasks. 
So, in Eclipse, I simply did a S/R in *.xml and compared parts of my changes with some Pierre's most "complex" patches respectively product, ebaystore, projectmgr and scrum. 
They were totally similar (just revisions number changed) so here is the whole. 

I will later improve these changes by removing HTML entities when possible, this is a bit more delicate because in some cases the XML schema are not complete (or/and for other still obscure to me reasons) and if you simply replace HTML entities by simple code (eg &Amp; by &) you get issues in logs when the XML parser cross them...

Note: only menus, screen and forms are changed here.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682118 13f79535-47bb-0310-9956-ffa450edef68
2015-05-27 20:39:43 +00:00
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