Commit Graph
1143 Commits
Author SHA1 Message Date
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 1788b6a224 Removes useless sentences according to Scott, after Adrian suggested to remove the HTML references.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1672081 13f79535-47bb-0310-9956-ffa450edef68
2015-04-08 12:50:15 +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 e5066b2ce5 No functional changes, just a bit of refactoring/cleaning
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671758 13f79535-47bb-0310-9956-ffa450edef68
2015-04-07 08:21:49 +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
Jacques Le Roux fc90936482 Forgot to commit these changes at r1671519, I will complete the rest later today...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671524 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 12:24:06 +00:00
Jacques Le Roux f903bdc355 Fixes a bug related to renderDateTimeField reported by Adrian's aon dev ML (when used from FTL templates)
Fixes also a bug related to renderLookupField when used from FTL templates with lookupField macro

I also spotted a number of other misc. trivial tabindex missing in other *FormMacroLibrary.ftl which should have not (or minor) effects on rendering. I will fix them later today...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671519 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 12:11:18 +00:00
Jacques Le Roux 8e0222e137 Adds HTML tabindex into widget form fields. It allows to set the tab order of elements (when the "tab" button is used for navigating). For instance by column when columns are used with the position attribute.
Normally it's implemented for all concerned fields.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1671500 13f79535-47bb-0310-9956-ffa450edef68
2015-04-06 09:34:54 +00:00
Deepak Dixit 6f30b5de01 Fixed NPE while rendering content using screen widget, if content.dataResouceId is null then ModelScreenWidget throwing NPW.
Applied patch from jira issue OFBIZ-6219

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1669588 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 13:44:45 +00:00
Adrian Crum f315f0d5be 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@1669537 13f79535-47bb-0310-9956-ffa450edef68
2015-03-27 10:04:14 +00:00
Jacques Le Roux 4e2d290f69 Fixes <<You can't rely on Lookup field description-field-name attribute in a form having skip-start="true">> https://issues.apache.org/jira/browse/OFBIZ-6170
Instead of adding a form-name attribute only in lookup sub-element, I added it a the field level and removed the one at the lookup level.So the form-name field attribute can be used in the field of both the lookup and if needed the field set in the lookup description-field-name attribute. I only tested it in a version more near 13.07 but I believe it's ok here

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667774 13f79535-47bb-0310-9956-ffa450edef68
2015-03-19 14:38:37 +00:00
Adrian Crum 9158c3af82 Fixed a bug in screenlet widget: If there is no Screenlet's preferenceKey in requestParameters, the initially-collapsed always be false. https://issues.apache.org/jira/browse/OFBIZ-6172
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667492 13f79535-47bb-0310-9956-ffa450edef68
2015-03-18 10:53:48 +00:00
Jacques Le Roux 2e4cfd552f Fixes <<"Lookup fields break when used with a form having skip-start="true">> https://issues.apache.org/jira/browse/OFBIZ-6139
We neglected this aspect so far, adding a "form-name" attribute to the lookup element fixes it. You then need also to set the correct id-name value on field element.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665535 13f79535-47bb-0310-9956-ffa450edef68
2015-03-10 13:29:40 +00:00
Jacques Le Roux 9422ab9c95 A slightly modified patch from Christian Carlow for "date-find in form widget does not persist value" https://issues.apache.org/jira/browse/OFBIZ-5074
Reported by Taher:
Any search form that calls "performFind" and has a "date-find" tag will not persist but it will give correct search results. 
For example, If I go to Order -> Requests and search using any of the date fields, the result will be correct but the field will be blank upon returning results. This behavior affects only dates.
I suspect the main offender here is a bug in performFind service or one of the services it calls (prepareFind or executeFind). I believe that the "queryStringMap" does not contain the date-find fields in its returned value. I did not look heavily into the code but I think "fld" types are not persisted in-between requests.

Christian:
This issue is still relevant and needed. The <date-find> values are not persisted after submission due to MacroFormRenderer.java not evaluating value and value2 correctly. In face, value2 isn't event passed to the definition in framework/widget/templates/htmlFormMacroLibrary.ftl. This is a starting point for this functionality. I said starting point because I'm not sure if it handles default values and other field settings that may need to be applied after my patch.

jleroux: It indeed needs to be improved, at least to keep the related date operator... I don't close yet, but would be better to open a new Jira issue...
I simply formatted the patch (tabs instead of 4 spaces) and used UtilGenerics.checkMap() instead of (Map<String, Object>) 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664696 13f79535-47bb-0310-9956-ffa450edef68
2015-03-06 18:53:42 +00:00
Jacques Le Roux f529b182ef Fixes "Birt doesn't work" reported by Leon at https://issues.apache.org/jira/browse/OFBIZ-5870
Workaround:
revert the commit r1621801 https://fisheye6.atlassian.com/changelog/ofbiz?cs=1621801, since ServletContextHashModel is being used by Birt, not the unused stuff.
revert the commit r1621953 to ControlServlet.java https://fisheye6.atlassian.com/changelog/ofbiz?cs=1621953 to import necessary packages
add "commons-discovery-0.4.jar" back to framework/base/lib/commons, or add it to specialpurpose/birt/lib folder, since it's depended by axis-1.4 https://fisheye6.atlassian.com/changelog/ofbiz?cs=1623042

jleroux: "commons-discovery-0.4.jar" has been already added back for OFBIZ-5876 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662812 13f79535-47bb-0310-9956-ffa450edef68
2015-02-27 20:52:10 +00:00
Adrian Crum 5dc2a447ac Fixed form widget rendering bug caused by widget refactor - https://issues.apache.org/jira/browse/OFBIZ-6051.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662120 13f79535-47bb-0310-9956-ffa450edef68
2015-02-24 21:19:09 +00:00
Adrian Crum eb7283f61d Fixed NPE in widget model toString() method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662119 13f79535-47bb-0310-9956-ffa450edef68
2015-02-24 21:17:33 +00:00
Adrian Crum 5bf807a075 Fixed a bug in form widget extends feature - https://issues.apache.org/jira/browse/OFBIZ-6084.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661760 13f79535-47bb-0310-9956-ffa450edef68
2015-02-23 20:05:55 +00:00
Jacopo Cappellato 4d485d7046 Applied patch contributed by Gareth Carter in OFBIZ-5910: it is a fix for a bug introduced by the fix for OFBIZ-3382.
The issue reported in OFBIZ-3382 and the fix committed for it need to be reviewed and possibly reworked but in the meantime this fix will solve the problem with broken links reported recently.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660031 13f79535-47bb-0310-9956-ffa450edef68
2015-02-16 06:50:41 +00:00
Adrian Crum 98017c1e2e Fix an exception in MacroScreenViewHandler.java - https://issues.apache.org/jira/browse/OFBIZ-6074.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1659965 13f79535-47bb-0310-9956-ffa450edef68
2015-02-15 18:24:51 +00:00
Adrian Crum ee70626d67 Fixed a bug caused by recent widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-6041.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656014 13f79535-47bb-0310-9956-ffa450edef68
2015-01-30 13:45:49 +00:00
Adrian Crum 828aff751a Fixed a bug in the form widget models where a default type was not being supplied under certain circumstances - https://issues.apache.org/jira/browse/OFBIZ-6037.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654824 13f79535-47bb-0310-9956-ffa450edef68
2015-01-26 14:58:43 +00:00
Adrian Crum dbd5cc3e69 Restore private final fields in ModelForm.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654684 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 18:39:51 +00:00
Adrian Crum b1737aee5d Eliminated redundant code in the new widget classes. ModelSingleForm and ModelGrid are effectively light-weight "decorators" for the ModelForm abstract class. ModelForm still retains code for all form types (single and list) - because any attempt to separate the functionality will result in an avalanche of code modifications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654683 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 18:36:26 +00:00
Adrian Crum 2818037cc7 Updated widget visitor for new grid widget.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654673 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 17:57:44 +00:00
Adrian Crum 3d3ea2ad67 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654672 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 17:56:26 +00:00
Adrian Crum 771e10f1c4 First pass at extracting grid widget from the form widget. This commit has a lot of duplicate code - future commits will reduce and reuse the duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654670 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 17:18:24 +00:00
Adrian Crum 1a23f8c1d7 Some fixups for the recent widget refactor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653614 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 17:35:49 +00:00
Adrian Crum 350053b05f Fixed a portal menu item bug caused by the recent widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-6022.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653597 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 16:54:18 +00:00
Adrian Crum c71dc63d27 Fixed a lookup bug caused by the recent widget refactoring, reported by lmac on the user mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653296 13f79535-47bb-0310-9956-ffa450edef68
2015-01-20 16:51:56 +00:00
Adrian Crum dcecdd25a4 Reorganized the screen widget src folder so classes are more organized.
This commit might break some Groovy scripts. There seemed to be a lot of C&P widget import statements, but there were no widget classes being used in the script, so I removed them. I might have overlooked something though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652852 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 21:03:40 +00:00
Adrian Crum 24a54944fd Some fixups for my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652688 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 22:38:38 +00:00
Adrian Crum f8daffe432 Build out XmlWidgetFieldVisitor. I am finished working on this feature, but it is not complete. There are some TODO: comments, and if anyone wants to work on them, they are welcome to do so.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652672 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 20:43:48 +00:00
Adrian Crum 28fecf1efc Revert unintentional change in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652641 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 16:59:30 +00:00
Adrian Crum ed262228b2 Screen widget overhaul:
1. Extract and reuse common code/artifacts.
2. Organized the class structure so it makes more sense.
3. Add an XML widget visitor - this restores and improves the widget classes toString() methods. This is a WIP.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652638 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 16:47:23 +00:00
Nicolas Malin 0b0d83657c restore element parameter, auto-parameters-entity and auto-parameters-service removed by error at revision r1650821
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652312 13f79535-47bb-0310-9956-ffa450edef68
2015-01-15 23:45:59 +00:00
Adrian Crum 65640c3a50 FIXME comment in screen widget schema, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650821 13f79535-47bb-0310-9956-ffa450edef68
2015-01-10 22:18:31 +00:00
Adrian Crum 2e8e62cba7 Form widget improvement: Set focus on first control when rendering a single form.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650357 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 19:25:41 +00:00
Adrian Crum ca9c76ad84 Improved code for ModelForm.java - better handling of attributes when extending a form widget.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650348 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 17:55:09 +00:00
Jacopo Cappellato 409dc4303c OFBIZ-5944: before trying to pull the values for the form's fields, check if the key exists in order to avoid an IllegalArgumentException if the map is a GenericEntity. Thanks to Christian Carlow for the report and to Deepak Dixit and Divesh Dutta for the research and useful comments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649742 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 07:43:00 +00:00
Adrian Crum 91feff5f51 Updated the UI label files so they reference a schema.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649666 13f79535-47bb-0310-9956-ffa450edef68
2015-01-05 21:24:18 +00:00
Adrian Crum d2375c12d0 Fix a C&P error in ModelMenuItem.java - https://issues.apache.org/jira/browse/OFBIZ-5943
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649384 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 19:02:29 +00:00
Adrian Crum 0b3a5ef360 JavaDocs for widget actions, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649331 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 13:41:03 +00:00
Adrian Crum 6db50a5b0a Update tree widget schemas & models to reuse shared actions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649329 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 13:39:35 +00:00
Adrian Crum 31135b6076 Update widget schemas to reuse shared actions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649291 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 04:51:08 +00:00
Adrian Crum 1f4c7e268f ModelMenuAction.java thread safety.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649286 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:17:28 +00:00
Adrian Crum d2ca9a7a0c Remove unused widget class.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649285 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:16:39 +00:00
Adrian Crum f2190af53e Refactor ModelFormAction.java to reuse common widget action models.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649283 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 03:07:40 +00:00
Adrian Crum d3c7dbb53e Code cleanup and thread safety in ModelWidgetAction.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649281 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 02:41:56 +00:00
Adrian Crum 73cc6c2cbf ModelWidgetAction.java code formatting, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649280 13f79535-47bb-0310-9956-ffa450edef68
2015-01-04 01:40:36 +00:00