Commit Graph
297 Commits
Author SHA1 Message Date
Jacopo Cappellato 262e87f79e Fixed: form macros with incorrect arguments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1773337 13f79535-47bb-0310-9956-ffa450edef68
2016-12-09 08:47:41 +00:00
Deepak Dixit 05b1f9cb81 Fixed: layered-modal hyperlink doesn't show style
(OFBIZ-7323)


Thanks Pierre Smits for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1770490 13f79535-47bb-0310-9956-ffa450edef68
2016-11-19 12:03:36 +00:00
Jacques Le Roux b0b7c65c0e Reverted: Can't find Company and admin in Party find feature
(OFBIZ-8505)

Reverts r1765058 + r1765080 following discussion on dev ML

This was introduced for this improvement: In form widgets of list type empty 
header row should not render if list to render in file is empty for OFBIZ-7598

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766080 13f79535-47bb-0310-9956-ffa450edef68
2016-10-21 17:31:37 +00:00
Mridul Pathak 76fcb2f49a Improved: In form widgets of list type empty header row should not render if list to render in file is empty.
(OFBIZ-7598)

Thanks: Suraj Khurana for contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765058 13f79535-47bb-0310-9956-ffa450edef68
2016-10-15 13:19:35 +00:00
Divesh Dutta 08db5125a1 [OFBIZ-7724] Fixed: System allows to change status from cancel to empty for return and allow-empty flag of form widget does not honour to add or not empty option field in drop-down. Thanks Ankush for reproting and fixing this issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759331 13f79535-47bb-0310-9956-ffa450edef68
2016-09-05 16:39:15 +00:00
Deepak Dixit 81ccd9b1f5 (OFBIZ-8050) Applied patch from jira issue
=================================
No need to show "---" after selecting any option from drop-down in Find Screens.
=================================
Thanks Renuka for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759018 13f79535-47bb-0310-9956-ffa450edef68
2016-09-02 19:19:25 +00:00
Ashish Vijaywargiya 5d7ec810de Applied patch from jira issue - OFBIZ-7819. Empty link icon shown in Search results of Find screens.
Thanks Akshay for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757990 13f79535-47bb-0310-9956-ffa450edef68
2016-08-27 11:08:52 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Deepak Dixit 1db94eeaee (OFBIZ-1319) Replace selectall.js occurance with OfbizUtil.js.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752900 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 06:46:24 +00:00
Ashish Vijaywargiya 9e63d2dde8 Applied patch from jira issue - OFBIZ-7330 - Error with Agreement Item Supplier product Pdf.
Thanks Ravi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749850 13f79535-47bb-0310-9956-ffa450edef68
2016-06-23 06:59:22 +00:00
Jacques Le Roux 3d61573b57 A patch from Arvind Singh Tomar for "Inventory report throws an error" https://issues.apache.org/jira/browse/OFBIZ-6947 reported by Pierre Smits
When executing the print pdf function in https://demo-trunk-ofbiz.apache.org/facility/control/ViewFacilityInventoryByProduct
the following error is thrown:
Unable to transform FO file: org.apache.fop.apps.FOPException: org.apache.fop.fo.ValidationException: null:80:115: "fo:table-cell" is missing child elements. Required content model: marker* (%block;)+ (See position 80:115) javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: null:80:115: "fo:table-cell" is missing child elements. Required content model: marker* (%block;)+ (See position 80:115)

The issue was due to missing child element which is failing on validation. Earlier we were using fop-1.1.jar and now it is updated to fop-2.0.jar which by default validates the markup. It is same as OFBIZ-7090
I have added the missing child elements in the macro which were causing the validation to fail and providing the updated patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748628 13f79535-47bb-0310-9956-ffa450edef68
2016-06-15 20:11:57 +00:00
Ashish Vijaywargiya 89e4e9c642 Applied patch from jira issue - OFBIZ-7203 - Empty Requirement Id and Product Id fields when generating pdf for Approved Product Requirements. Thanks Ravi for the contribution. Thanks for your extensive research and providing the details in the task, your notes are very helpful.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747516 13f79535-47bb-0310-9956-ffa450edef68
2016-06-09 09:14:13 +00:00
Deepak Dixit 09ca38b7f6 (OFBIZ-7164) Fix typo in freemarker else tag.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746691 13f79535-47bb-0310-9956-ffa450edef68
2016-06-03 08:59:56 +00:00
Nicolas Malin ab92393570 Add xls screen renderer to convert a screen definition like an html flow directly ready by a spreadsheet application
In addition, add an export example button on FindExample screen and add complete macro ftl renderer unit test. Issue OFBIZ-6931 proposed by Leila Mekika. Thanks to her, jacques and pierre for theirs remarks.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1746045 13f79535-47bb-0310-9956-ffa450edef68
2016-05-29 18:38:26 +00:00
Deepak Dixit 79a4302d2c (OFBIZ-7021) Renamed framework widget component ftl file name from lower camel case to upper camel case pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1744782 13f79535-47bb-0310-9956-ffa450edef68
2016-05-20 18:21:02 +00:00
Nicolas Malin a6284ff24a Correct the fop macro library to pass test testFopMacroLibrary(). This has been possible with the issue OFBIZ-7015 Ugrade Apache Tika library, to use tika for analyse the pdf as string
related issue OFBIZ-6497

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1739553 13f79535-47bb-0310-9956-ffa450edef68
2016-04-17 08:41:03 +00:00
Jacques Le Roux adb90faef8 A modified patch from Pierre Smits for "Replace Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue in .ftl files with EntityUtilProperties variant" https://issues.apache.org/jira/browse/OFBIZ-6884
Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue is used in several .ftl files. 

Replaces with EnittyUtilProperties variant where appropriate. 

jleroux: In this is the 2nd commit from the 3rd patch (the 2nd had issues) I fixed 2 "typos" I spotted while reviewing in
  ecommerce/customer/editcontactmech.ftl
  ecommerce/customer/newcustomer.ftl
where "UtilProperties" was not replaced



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1729002 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 18:23:49 +00:00
Jacques Le Roux c19af8a60b Reverts r1728959 because of misc. issues with the patch, see my comment at https://issues.apache.org/jira/browse/OFBIZ-6884
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728961 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 13:59:41 +00:00
Jacques Le Roux 3a5cc393cf A patch from Pierre Smits for "Replace Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue in .ftl files with EntityUtilProperties variant" https://issues.apache.org/jira/browse/OFBIZ-6884
Static["org.ofbiz.base.util.UtilProperties"].getPropertyValue is used in several .ftl files. 

Replaces with EnittyUtilProperties variant where appropriate.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1728959 13f79535-47bb-0310-9956-ffa450edef68
2016-02-07 13:18:50 +00:00
Ashish Vijaywargiya 6caa828896 Applied patch from jira issue - OFBIZ-6735. Tooltip Calendar field (date or date-time) should not stop when using tab key. Thanks Jacques for creating the issue and thanks Jagpreet for the patch contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724975 13f79535-47bb-0310-9956-ffa450edef68
2016-01-16 13:47:30 +00:00
Nicolas Malin 6fd3a96ed6 Correct on layered-modal link :
* the uuid string to set as unique layered-modal call method name, error introduce with issue OFBIZ-6707 and raise on the issue OFBIZ-6786 by Wai.
* parameters missing when you call the link from a form because their passed in the url and not with the jquery data set, related to OFBIZ-6803

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1724796 13f79535-47bb-0310-9956-ffa450edef68
2016-01-15 13:17:39 +00:00
Nicolas Malin fdb9235b5e Remove an over charge on js function getRequestData() use by layered-modal link call when two links are present on the same page. Related to OFBIZ-6768
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1719868 13f79535-47bb-0310-9956-ffa450edef68
2015-12-14 09:19:37 +00:00
Nicolas Malin ec00f23292 complete commit r1710727 on OFBIZ-6354 that adding new ftl macros renderFormatHeaderOpen and renderFormatHeaderClose on htmlFromMacroLibrary.ftl. This commit adding these macro on textFormMacroLibrary.ftl, xmlFormMacroLibrary.ftl and csvFormMacroLibrary.ftl. The unit test widgettests now pass without failure
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1715756 13f79535-47bb-0310-9956-ffa450edef68
2015-11-23 10:42:55 +00:00
Deepak Dixit c1ba07a466 (OFBIZ-6241) Fixed table-layout="auto" FOP warning. Used table-layout="fixed" to fix the warning.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1715493 13f79535-47bb-0310-9956-ffa450edef68
2015-11-21 10:14:05 +00:00
Jacques Le Roux 50cedb1744 Implements "Improve the way default position and size lookup parameters are set" https://issues.apache.org/jira/browse/OFBIZ-6710
Inspired by Nicolas's recent work on modal-layer windows

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1712520 13f79535-47bb-0310-9956-ffa450edef68
2015-11-04 09:54:34 +00:00
Jacques Le Roux ffa71d74ae 3 patches from Christian Carlow for "FOP rendered list form widgets do not work for fields with postition > 0" https://issues.apache.org/jira/browse/OFBIZ-6354
It doesn't work because of the way the renderFormatHeaderRowOpen is called causes the FOP renderer to create more than one <fo:table-header>.

The 1st patch adds renderFormatHeaderOpen and renderFormatHeaderClose to separately generate <fo:table-header> for FOP and <thead> for html.
The 2nd patch adds the new list form widget header methods to the deprecated HtmlFormRenderer needed by EmailServices.java to handle OFBIZ-6360 until replaced with MacroFormRender.
The 3rd patch handles the other FormRenderers FOP, Text, Xml. This issue is still a work in process.

jleroux: there is this  "FIXME: this is an hack to avoid FOP rendering errors for empty lists (fo:table-body cannot be null)" in code



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710727 13f79535-47bb-0310-9956-ffa450edef68
2015-10-27 07:18:01 +00:00
Jacques Le Roux a1a4374359 Reverts r1710527 and r1710528 (was for OFBIZ-6354), thanks to Deepak for warning on dev ML (BuildBot still down but infra is working on it)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710675 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 18:53:33 +00:00
Jacques Le Roux 9efb447a80 A patch from Christian Carlow for "FOP rendered list form widgets do not work for fields with postition > 0" https://issues.apache.org/jira/browse/OFBIZ-6354
It doesn't work because of the way the renderFormatHeaderRowOpen is called causes the FOP renderer to create more than one <fo:table-header>.

This patch adds renderFormatHeaderOpen and renderFormatHeaderClose to separately generate <fo:table-header> for FOP and <thead> for html.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1710527 13f79535-47bb-0310-9956-ffa450edef68
2015-10-26 08:15:45 +00:00
Nicolas Malin adbd19dc0b Make layered-window available in forms and menu (OFBIZ-6327), adding example to use on example form and widget example and set new properties to define defaut layered windows size. Thanks Jacques Leroux for the submission
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706909 13f79535-47bb-0310-9956-ffa450edef68
2015-10-05 19:56:28 +00:00
Jacques Le Roux 73d02547cd A patch from Christian Carlow for "FOP renderer does not support alternate row style" https://issues.apache.org/jira/browse/OFBIZ-6355
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704137 13f79535-47bb-0310-9956-ffa450edef68
2015-09-20 13:48:26 +00:00
Jacques Le Roux e4cfb02613 A patch from Christian Carlow for "FOP renderer doesn't apply title-area-style" https://issues.apache.org/jira/browse/OFBIZ-6356
NotoSans is the defaultFontFamily for FOP and the extra stylings and the font-weight="bold" are not rendered correctly unless changed to another font family

jleroux: this needs clarification, I will ask Christian 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704130 13f79535-47bb-0310-9956-ffa450edef68
2015-09-20 13:42:16 +00:00
Jacques Le Roux 55ea7a66d4 A patch from François Lecomte for "Adding the week number in date picking dropdowns" https://issues.apache.org/jira/browse/OFBIZ-5361
For some users, having the week shown in dropdown calendars is an important thing.
There is an option to show week numbers in the dropdown date picker used by OFBiz. (datetimepicker)
It can be done by adding "showWeek: true," in the datetimepicker calls in framework/widget/templates/htmlFormMacroLibrary.ftl.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704086 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 20:01:17 +00:00
Jacques Le Roux 1310a182cc Document to makes the changes for OFBIZ-6504 more clear
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693400 13f79535-47bb-0310-9956-ffa450edef68
2015-07-30 09:26:20 +00:00
Jacques Le Roux 9f00d68173 Fixes an issue crossed while checking OFBIZ-6504 - how to Create PDF with password Protected in Ofbiz
There was still an issue in normal (not PDF) mode, I thought I had just to replace \' by void, but I got fooled, because \' already transformed in Unicode characters (&#x5c;&#x27;) at this stage. So I replaced "&#x5c;&#x27;" by "&#x27;"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1693258 13f79535-47bb-0310-9956-ffa450edef68
2015-07-29 13:33:12 +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 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
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
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
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
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
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 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 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
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 5f0ea0a387 Completes r1671519 for https://issues.apache.org/jira/browse/OFBIZ-6232 "Adds HTML tabindex into widget form fields"
There was still an issue when rendering renderLookupField from FTL templates

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671847 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 13:49:53 +00:00
Jacques Le Roux eb67d60fc3 Completes r1671519 for https://issues.apache.org/jira/browse/OFBIZ-6232 "Adds HTML tabindex into widget form fields"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671756 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 08:20:39 +00:00