Commit Graph
899 Commits
Author SHA1 Message Date
Adrian Crum 7df6bb7216 Spelling correction in UI label file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1234578 13f79535-47bb-0310-9956-ffa450edef68
2012-01-22 18:56:47 +00:00
Erwan de Ferrieres 05c9bae6e5 tabs to spaces, no functional changes - java files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230478 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 10:37:35 +00:00
Ashish Vijaywargiya 04ae57b902 Apply bug fix patch from jira issue OFBIZ-4649 - Some parameters missing in xmlFormMacroLibrary.ftl macros.
Description:
Getting errors on clicking "Export" tab. Steps to regenerate the issue.

1. Go to Facility component.
2. Go to inventory tab. 
3. After that go to "Export" tab, there is an error:

Macro renderFormOpen has no such argument: viewSize
The problematic instruction:
----------
==> macro renderFormOpen [on line 64, column 1 in component://widget/templates/xmlFormMacroLibrary.ftl]
in user-directive renderFormOpen

For reference- please have a look on below given link-

https://demo-trunk.ofbiz.apache.org:8443/facility/control/ViewFacilityInventoryByProduct?facilityId=WebStoreWarehouse

I have done searching and found that there are parameters missing in some xmlFormMacroLibrary.ftl macros for both trunk and release branch 11.04.
Thanks Amardeep for the contribution!!!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1229090 13f79535-47bb-0310-9956-ffa450edef68
2012-01-09 10:47:33 +00:00
Erwan de Ferrieres c011b5e9cd OFBIZ-4614 - property auto-field-map in services in actions in forms, not working as describe in xsd description, name of map is not used - A patch from Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1227365 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 22:34:47 +00:00
Erwan de Ferrieres b41313ca26 OFBIZ-4641 - in Form.xml, special characters are not manage correctly in description if text-size is used in drop-down - a patch from Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1227340 13f79535-47bb-0310-9956-ffa450edef68
2012-01-04 21:46:53 +00:00
Jacques Le Roux 97d79c74f4 A patch from Leila Mekika "Use-when not working on multi-forms submit button" https://issues.apache.org/jira/browse/OFBIZ-4605
The submit button of a form multi is rendered even if we add a use-when condition

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1221913 13f79535-47bb-0310-9956-ffa450edef68
2011-12-21 22:24:58 +00:00
Erwan de Ferrieres 10f612c5e9 OFBIZ-4487 - enable definition for position on sortfield - patch from Youssef Khaye and Olivier Heintz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1220927 13f79535-47bb-0310-9956-ffa450edef68
2011-12-19 20:16:01 +00:00
Jacques Le Roux 0b790e1661 A patch from Manuela Gruendlinger "renderDateTimeField does not allow to clear input field" https://issues.apache.org/jira/browse/OFBIZ-4595
Input fields rendered with renderDateTimeField cannot be cleared, the old value is always restored.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1209250 13f79535-47bb-0310-9956-ffa450edef68
2011-12-01 21:26:32 +00:00
Adrian Crum a90a7cb45b Changed the behavior of screenlet title bar: Do not hide title bar controls when screenlet is collapsed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1206013 13f79535-47bb-0310-9956-ffa450edef68
2011-11-24 23:01:31 +00:00
Adrian Crum d603c617b8 Fixed bug in htmlFormMacroLibrary.ftl - list navigation page size drop-down was ignoring the current setting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204170 13f79535-47bb-0310-9956-ffa450edef68
2011-11-20 13:44:33 +00:00
Hans Bakker 62b4f44ab3 update the form renderer. when a content url starts with http, do not prefix the url with the website url
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202081 13f79535-47bb-0310-9956-ffa450edef68
2011-11-15 07:41:50 +00:00
Sascha Rodekamp 91ffcbdae6 Update jQuery:
jQuery library to version 1.7
jQuery UI to version 1.8.16
jQuery Validation to version 1.9
jQuery Flot to version 0.7
jQuery datetimepicker to version 0.9.7
and jsTree

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1199218 13f79535-47bb-0310-9956-ffa450edef68
2011-11-08 12:35:33 +00:00
Adrian Crum 68cb7f39d8 Added some comments to broken section of code in MacroFormRenderer.java. No time to fix it right now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1197028 13f79535-47bb-0310-9956-ffa450edef68
2011-11-03 09:43:43 +00:00
Jacques Le Roux 087262557c * Uses rather minified css for elrte Editor
In last commits (1178141, 1178111) I put wrong paths for:
* elrteEditor for css pathes is now elrte-1.3
* missed js in elrte-1.3/js/i18n for i18n files



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1178166 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 09:48:05 +00:00
Jacques Le Roux 70902dcb86 Missed a change in HtmlFormRenderer.java
Removes useless/redundant jQuery files
Adds a elrte translation file for Ukraine file which was provided in a patch from Sascha related to 1.2 but is missing in 1.3

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1178151 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 08:49:58 +00:00
Jacques Le Roux 1a2cc4faf9 In order to try to resolve "i18n for elrte editor" https://issues.apache.org/jira/browse/OFBIZ-4051, 1st update elrte Editor from 1.1 to to 1.3 version
Also removes now useless older jQuery versions I kept so far for a problem nobody cares about anyway

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1178141 13f79535-47bb-0310-9956-ffa450edef68
2011-10-02 08:06:49 +00:00
Erwan de Ferrieres 573f6f401a A patch from Youssef Khaye: Date time field with input method set to time-drop-down is not working correctly OFBIZ-4448
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1175474 13f79535-47bb-0310-9956-ffa450edef68
2011-09-25 18:15:11 +00:00
Adrian Crum e341923a6a Small JavaDoc fixup for my last commit - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1173047 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 09:26:27 +00:00
Adrian Crum 4b7cd7434a Changed the screen widget boundary comment behavior per a discussion on the dev mailing list. Setting the widget.properties file widget.verbose property to false now acts like a "master switch" to turn off all widget boundary comments - it ignores all other settings. If the property is set to true, then the setting can be overridden in web.xml or in the screen context.
This commit also removes the demonstration widgetVerbose setting in the Example component's web.xml file - which caused some confusion, and it comments out the setting in the web.xml file that is used for creating new components.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172954 13f79535-47bb-0310-9956-ffa450edef68
2011-09-20 02:55:44 +00:00
Sascha Rodekamp 16607bb1ac UPDATE: Some improvements with Map iterations (https://issues.apache.org/jira/browse/OFBIZ-4415) A patch from Dimitri Unruh which improves some Map Iterations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170525 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 10:52:01 +00:00
Sascha Rodekamp c6226ef627 UPDATE: Missing german conditional label (https://issues.apache.org/jira/browse/OFBIZ-4404). One new german conditional label from Dimitri Unruh.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170466 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 08:00:02 +00:00
Jacques Le Roux 617330e6d5 Continued refactoring (WIP...)
* UtilValidate.is(Not)Empty wherever possible
* Remove useless boiler plate code which makes things harder to read
 * if on one line w/out {}, it avoid future errors: you can't miss the block if you need to add a line
 * else on one line w/out {}, it avoid future errors: you can't miss the block if you need to add a line
 * no else when return in previous if
 The result is a much easier code to read. I'd recommend to use this style everywhere in OFBiz. Of course this suppose a screen with larger width than in 2000 years...


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170442 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 06:18:26 +00:00
Jacques Le Roux e844e0dff1 Revert to r1169754, will see later: FlexibleStringExpander issues: UtilValidate.is(No)tEmpty() can't be used...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170109 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 10:50:53 +00:00
Jacques Le Roux 065f14810c Related to the recent UtilValidate.is(Not)Empty() effort. I found the reason, you can't safely pass a FlexibleStringExpander to UtilValidate.is(Not)Empty. All other cases were all right. Lesson learned the hard way, I put comments about that...
I also refactored, I prefer if/else with only one short expression to be on the same line, notably when return is used (then else is useless)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169917 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 20:48:10 +00:00
Jacques Le Roux 0305d6560d Related to the recent UtilValidate.is(Not)Empty() effort. This part is OK and I prefer this style, easier to read and check (sorry not for the 1st review). I will continue on the rest, if I don't read myself blind on it...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169891 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 19:35:20 +00:00
Jacques Le Roux e497883d62 VCard.java: replaec an UtilValidate.isNotEmpty() by a simple isEmpty()
ShoppingCart.java: a tabs has been automatically replaced by 8 spaces, fixes it
UtilValidate.java: removes useless parentheses
GeneriDao.java: fixes a wrong UtilValidate.isNotEmpty
ModelFormField.java: revert all UtilValidate.is(Not)Empty() changes though I ddid not find an error there, it must be one because https://localhost:8443/humanres/control/EditResponsibilityTypes is not rendered correctly. I will check again

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169754 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 14:13:17 +00:00
Jacques Le Roux 2b712efb98 No functional changes, simple code refactoring around UtilValidate.is(Not)Empty()
Changes implementation of UtilValidate.isEmpty() for Collection and Map by using isEmpty() instead of c.size() == 0). It's more clear and as efficient. Removes also useless parentheses there.

Makes use of UtilValidate.is(Not)Empty() everywhere it makes senses. This for 2 reasons:
* Make the code more readable by replacing the (!)null/isEmpty pattern.
* Avoid possible NPEs when only isEmpty() was used (after Entity.find... for instance). I found a lot of cases (242 today) where isEmpty() could perhaps be replaced in Framework. But I guess no NPE checks were missing there and anyway it was too much for me to check them all... So I only did the relevant changes in Applications...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169478 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:11 +00:00
Adrian Crum 642c6383e5 Fix NPE I introduced in my previous commit. Reported by Chatree Srichart.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165233 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 10:47:32 +00:00
Adrian Crum b891086624 Fixed a ModelFormField bug introduced in rev 1075322 - date and date-time form fields were throwing exceptions because the description Strings were HTML encoded before being converted to other types. I moved the HTML encoding to post-conversion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165011 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 13:26:57 +00:00
Hans Bakker 9b17664d42 add the viewsize and viewindex parameters to the buttons on a list form to remember the paage and pagesize automatically
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1160539 13f79535-47bb-0310-9956-ffa450edef68
2011-08-23 04:26:06 +00:00
Adrian Crum dfb1eac36f Fixed a screen widget bug where non-existent hyperlink parameter values were rendered as "null" - https://issues.apache.org/jira/browse/OFBIZ-4358.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1153752 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 04:51:19 +00:00
Erwan de Ferrieres 968819599e Forgot modification in HtmlFormRenderer.java at rev 1145293 when using a time-dropdown
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1148033 13f79535-47bb-0310-9956-ffa450edef68
2011-07-18 20:07:25 +00:00
Jacques Le Roux eec5799ce9 A patch from BJ Freeman "update tree widget xsd" https://issues.apache.org/jira/browse/OFBIZ-4329
The example were out of date and there are plenty of examples in code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1147410 13f79535-47bb-0310-9956-ffa450edef68
2011-07-16 11:54:58 +00:00
Erwan de Ferrieres a5a3c1983f Using the type time for a field, when input-method=time-dropdown doesn't remove the date fields. Now, only hours and minutes are visible.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1145293 13f79535-47bb-0310-9956-ffa450edef68
2011-07-11 18:58:26 +00:00
Adam Heath de833d793f FIX: Fix rendering of forms that have no fields defined.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139855 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 18:07:38 +00:00
Scott Gray 603e1504fe OFBIZ-4306 fix bug reported by Gaudin Pierre. The datejs library's Date.parse(string) method doesn't work very well, seems to just guess at what format to use. Switch to using the parseExact(date, format) method instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139521 13f79535-47bb-0310-9956-ffa450edef68
2011-06-25 11:13:33 +00:00
Jacques Le Roux 4853449c25 A patch from Nicolas Malin <<Display dateTime field with input method time-dropdown not use context value to display hour and minutes>> https://issues.apache.org/jira/browse/OFBIZ-4319
If you define a dateTime field like that :

<field name="estimatedStartDate"><date-time input-method="time-dropdown" step="10"/></field>
and pass in context : estimatedStartDate = "2011-06-016 20:30:00"
when you edit the form, estimatedStartDate takes the good value 2011-06-016 on date, but takes nowTimestamps.hour for dropdown hour instead of 20 and nowTimestamps.minutes for dropdown minutes instead of 30

To test the patch :

    go to ofbiz example component with given date : "https://localhost:8443/example/control/FormWidgetExamples?field4=2001-01-01 02:21:000"
    the field 4 must have hour to 02 and minutes to 21

The patch also corrects multiple definition : sr.append("\" value=\"");
and removes unneeded escape at end line : if (UtilValidate.isEmpty(requiredStyle)) requiredStyle = "required";



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139385 13f79535-47bb-0310-9956-ffa450edef68
2011-06-24 17:33:25 +00:00
Adrian Crum af5b6cfd1c Small fixup for my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138575 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 18:40:50 +00:00
Adrian Crum 3fc434f86c More work on the renderLookupField Freemarker macro: Improved documentation, provide default values for optional parameters, jQuery bug fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1138485 13f79535-47bb-0310-9956-ffa450edef68
2011-06-22 14:39:06 +00:00
Adrian Crum 7ec4134b8a Documentation for the renderLookupField Freemarker macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137603 13f79535-47bb-0310-9956-ffa450edef68
2011-06-20 12:00:39 +00:00
Jacques Le Roux dd7e1be1c1 A patch from Leon <<"setUserPreference" goes to main page instead last view if current form includes any lookup field>> https://issues.apache.org/jira/browse/OFBIZ-4313
When I open a form which include lookup field and then click the expand/collapse button around the upper right corner in the the header, the page will go to "main" after user preference is settled.

The cause is the requests initiated by lookup field does not remember the last view name. It simply use "main" instead.

Patch to make lookup requests remember the LAST_VIEW_NAME correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1137433 13f79535-47bb-0310-9956-ffa450edef68
2011-06-19 20:59:35 +00:00
Sascha Rodekamp 207e6630f2 wrong link href of leaf node in a tree element (https://issues.apache.org/jira/browse/OFBIZ-4315).
A slightly modified patch from Leon which corrects the href tag of empty leaf nodes.

OrigMsg:
like department and employee tree in main page of human resource management application, if you click the expand/collpase link of a leaf node, the wrong request error occurs. Since there's a empty link href value set for leaf node, browser will treat it as the request "https://.../humanres/control".


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1135929 13f79535-47bb-0310-9956-ffa450edef68
2011-06-15 06:21:19 +00:00
Jacques Le Roux c60e0e0388 Were missing in r1098100
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1132496 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 21:36:00 +00:00
Erwan de Ferrieres 30ac5d9102 Adding help text when displaying a field, code directly copied from MacroFormRenderer.renderFieldTitle
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1129877 13f79535-47bb-0310-9956-ffa450edef68
2011-05-31 19:37:39 +00:00
Jacques Le Roux 2b17d17651 A patch from Leon "The absence of default delay value for ajaxAutoCompleter introduces html syntax error in client end" https://issues.apache.org/jira/browse/OFBIZ-4305
When I 1st wrote this I used delay instead of defaultDelay. I then changed the name but forgot to change in widget.properties file. I wanted to keep it commented out to have default value commented out (Convention over configuration) but it would be more complicated and anyway would not follow how it's done in widget.properties

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1129036 13f79535-47bb-0310-9956-ffa450edef68
2011-05-30 08:02:48 +00:00
Marco Risaliti 56f315b3e5 Removed some javadoc warning (wrong param/return) into widget component no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1126754 13f79535-47bb-0310-9956-ffa450edef68
2011-05-23 21:17:30 +00:00
Jacques Le Roux f85384c1fe Related to r1099244 "Default delay for ajaxAutoCompleter". I forgot some pieces of the puzzle. When I manually quickly tested it worked but of course I did not test all cases. This should be OK now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1099270 13f79535-47bb-0310-9956-ffa450edef68
2011-05-03 21:32:03 +00:00
Jacques Le Roux a26341cf1b Default delay for ajaxAutoCompleter
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1099244 13f79535-47bb-0310-9956-ffa450edef68
2011-05-03 21:03:11 +00:00
Ashish Vijaywargiya 17f4cac6a0 Applied patch from jira issue OFBIZ-4267. Disabled attribute for lookup field should be readonly.
Lookup tag has a attribute "disabled" that is used to set disabled="disabled" property for lookup input element and it create also a clear button just after lookup field to clear the field value.
But if we set disabled="disabled" for any input field then that field does not passes as parameter and we can't accesses it from parameters or request parameters , so it should be "readonly". 
If we set readonly-"readonly" then user can't change the field value directly, and this field passes as parameters.
Only difference between readonly and disabled is that in case of disabled field does not passes as parameter buy in case of readonly field passes as a parameter.
Thanks Deepak for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098082 13f79535-47bb-0310-9956-ffa450edef68
2011-04-30 09:05:20 +00:00
Erwan de Ferrieres bfc158dc67 A patch from Pierre Gaudin - error in pagination target with on-event-update-area parameters - OFBIZ-4249
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096871 13f79535-47bb-0310-9956-ffa450edef68
2011-04-26 19:43:01 +00:00